Product Vision: An AI-powered platform that demonstrates the "Return on Investment" of healthy lifestyle choices through explainable biological age prediction.
Current Status: β
Model artifacts trained | ποΈ Streamlit app development in progress
Timeline: 20-day sprint to thesis defense (Week 1 complete)
This repository represents a strategic pivot from building a complex production architecture to delivering a rapid-prototyping MVP that validates a core product hypothesis: Can Explainable AI (XAI) effectively communicate "Health ROI" to users?
The Pivot (October 28, 2025): After multiple scientific chaos injection attempts (Issues #49-50), we adopted a business-pragmatic approach focused on demonstrating value within thesis constraints. The result: a simplified dataset with explicit non-linear patterns where Random Forest meaningfully outperforms Linear Regression (+3-4% RΒ² improvement).
The thesis defense will be presented as a "Startup Pitch" for "LiveMore," demonstrating the ability to:
- β Generate defensible synthetic biological aging data (proprietary methods)
- β Build ML models with explainable predictions (SHAP-based XAI)
- β Validate product hypotheses quickly using modern prototyping (Streamlit)
- β Balance scientific rigor with business practicality (MVP mindset)
Sprint Timeline: 20 days to thesis defense (Day 6/20)
Current Phase: β
Week 1 Complete - Data & Models Ready | ποΈ Week 2 Starting - Streamlit Development
Main Deliverable: antiaging-mvp/streamlit_app/ - Interactive Streamlit demo
Week 1 Achievements (Oct 22-28):
- β
Generated
datasets_livemore_mvp/with business-focused non-linear patterns - β Trained Random Forest model (RΒ²=0.95, MAE=2.02 years on training)
- β Created SHAP explainer for model interpretability
- β
Saved model artifacts to
antiaging-mvp/streamlit_app/app_model/ - β Documented pivot rationale and business approach
The project is currently focused on the Streamlit MVP. The production architecture (FastAPI backend, React frontend, ONNX export, Docker deployment) has been moved to /legacy and represents the post-validation roadmap.
Why this approach?
- β Demonstrates technical leadership and product thinking
- β Validates core hypothesis before heavy engineering investment
- β Delivers working demo within thesis constraints
- β
Preserves future scalability path (see
docs/FUTURE_ROADMAP_POST_TCC.md)
anti-aging-epigenetics-ml-app/
βββ antiaging-mvp/
β βββ streamlit_app/ # π― MAIN DELIVERABLE - Streamlit MVP
β βββ app.py # Main application (TO BE BUILT)
β βββ app_model/ # β
Trained artifacts
β β βββ livemore_rf_v2.joblib # Random Forest model
β β βββ livemore_scaler_v2.joblib # Feature scaler
β β βββ livemore_explainer_v2.pkl # SHAP explainer
β β βββ model_metadata.json # Model info
β βββ requirements.txt # Dependencies
β βββ README.md # Setup instructions
β
βββ ml_pipeline/ # π¬ ML Development Pipeline
β βββ data_generation/ # Data generation engine
β β βββ generator_mvp_simple.py # β
Business-focused generator
β β βββ generator_v2_biological.py # Scientific chaos engine
β β βββ datasets_livemore_mvp/ # β
ACTIVE dataset
β β βββ datasets_chaos_v2/ # Attempted scientific approach
β βββ train_model_mvp.py # β
Model training script
β βββ quick_validation_mvp.py # β
Rapid RF vs Linear validation
β βββ models/ # Model evaluation utilities
β
βββ notebooks/ # Analysis & validation notebooks
β βββ baseline_figures/ # Visualization outputs
β
βββ legacy/ # π¦ ARCHIVED - Post-MVP production code
β βββ backend_fastapi_archive/
β βββ frontend_react_archive/
β βββ datasets_chaos_v1_invalid/ # Failed attempt
β βββ notebooks_archive/
β
βββ docs/ # π Comprehensive documentation
βββ PIVOT.md # Strategic pivot rationale
βββ PROJECT_STATUS_OCT_2025.md # Detailed status & findings
βββ INDEX.md # Documentation navigation
βββ FUTURE_ROADMAP_POST_TCC.md # Post-thesis plans
Problem: People don't understand how lifestyle choices impact their biological aging
Solution: An AI-powered simulator that:
- Predicts biological age from lifestyle/genetic factors
- Explains each factor's impact using SHAP (Explainable AI)
- Presents results as "Health ROI" (business-friendly language)
Technical Approach:
- Synthetic biological aging data (proprietary "Chaos Engine")
- Random Forest model for non-linear pattern detection
- SHAP for transparent, interpretable explanations
- Streamlit for rapid iteration and user testing
The project's main technical innovation is the synthetic data generation engine (ml_pipeline/data_generation/), which creates business-relevant aging datasets with:
Scientific Approach (generator_v2_biological.py):
- 10 aging-related SNPs with Hardy-Weinberg equilibrium
- 20 CpG methylation sites mimicking epigenetic clocks
- 5-phase chaos injection (heavy-tailed noise, interactions, age-variance)
- Result: Too complex for MVP timeline, archived as research foundation
Business Approach (generator_mvp_simple.py - ACTIVE):
- β Simplified 9-feature model (age, gender, 6 lifestyle factors, genetic risk)
- β Explicit non-linear patterns (thresholds, exponentials, U-curves)
- β Strong interaction effects (smokingΓstress, exerciseΓdiet)
- β Demonstrates clear RF advantage over Linear Regression
- β Suitable for MVP demonstration and thesis defense
Current Dataset: datasets_livemore_mvp/ - 5000 training samples, 3 test sets
Navigate to the main deliverable:
cd antiaging-mvp/streamlit_app/Follow the setup instructions in antiaging-mvp/streamlit_app/README.md
Prerequisites:
- Python 3.8+
- Virtual environment (recommended)
- Trained model artifacts (generated via Issue #50 workflow)
Week 1: Data Foundation β COMPLETE (Oct 22-28)
- β
Archive production architecture to
/legacy - β Attempted Issue #49-50 (scientific chaos injection)
- β Pivoted to business-pragmatic approach
- β
Generated
datasets_livemore_mvp/with meaningful RF advantage - β Trained Random Forest model (RΒ²=0.95, 9 features)
- β Created SHAP explainer and model artifacts
Week 2: MVP Implementation ποΈ IN PROGRESS (Oct 29 - Nov 4)
- Build Streamlit UI with sidebar inputs (age, lifestyle factors)
- Implement prediction display with biological age result
- Add SHAP waterfall/force plots for explanation
- Polish UI with business-friendly "Health ROI" language
- Test end-to-end user flow
Week 3: Thesis Preparation β³ UPCOMING (Nov 5-11)
- Create pitch deck using Streamlit demo as centerpiece
- Document pivot rationale and technical decisions
- Prepare defense materials with business narrative
- Practice demo and Q&A scenarios
See docs/FUTURE_ROADMAP_POST_TCC.md for the complete production architecture plan:
- FastAPI REST API backend
- React/Next.js frontend
- ONNX model export for production inference
- PostgreSQL for user data
- Docker deployment
- Authentication and security
- docs/PIVOT.md - The complete strategic plan (20-day sprint)
- docs/PROJECT_STATUS_OCT_2025.md - Current status and Issue #50 justification
- antiaging-mvp/streamlit_app/README.md - MVP setup and architecture
- ml_pipeline/data_generation/README.md - Data generation engine docs
- docs/FUTURE_ROADMAP_POST_TCC.md - Post-MVP production roadmap
- README_PROFESSORS.md - Academic presentation for thesis committee
- Working Streamlit app with local deployment
- Random Forest model outperforms Linear Regression by >5%
- SHAP explanations clearly show factor importance
- UI uses business-friendly "Health ROI" language
- Complete thesis pitch deck with live demo
-
datasets_chaos_v2/passes non-linearity validation - Model artifacts (<50MB) load quickly in Streamlit
- User can input lifestyle factors and see instant results
- SHAP waterfall/force plots render correctly
The following were deliberately moved to /legacy to maintain sprint focus:
- β FastAPI backend implementation
- β React frontend development
- β ONNX model export
- β Docker containerization
- β Database integration (PostgreSQL)
- β User authentication (JWT)
- β Production deployment
- β Load testing and optimization
Rationale: These represent the post-validation engineering roadmap. Building them now would consume the thesis timeline without validating the core hypothesis.
Institution: Undergraduate Thesis in Biological Sciences
Focus: Demonstrating technical leadership through product validation
Approach: Startup methodology applied to academic research
Timeline: 20-day sprint to defense
For the academic/professor-oriented view, see README_PROFESSORS.md.
See LICENSE file for details.
Last Updated: October 27, 2025
Project Phase: Streamlit MVP Sprint (Week 1 - Data Foundation)
Next Milestone: Issue #50 completion and datasets_chaos_v2/ validation