Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

235 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LiveMore: AI-Powered Health ROI Simulator (MVP)

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)


🎯 Project Overview

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)

πŸš€ Current Status

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

Strategic Focus

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)

πŸ“‚ Repository Structure

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

πŸŽ“ The "LiveMore" Product Concept

Problem: People don't understand how lifestyle choices impact their biological aging

Solution: An AI-powered simulator that:

  1. Predicts biological age from lifestyle/genetic factors
  2. Explains each factor's impact using SHAP (Explainable AI)
  3. 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

πŸ”¬ Core Intellectual Property: Synthetic Aging Data Generation

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

πŸƒ Quick Start (Streamlit MVP)

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)

πŸ“Š Development Approach

Current Sprint (20 Days)

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

Post-Thesis Roadmap

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

οΏ½οΏ½ Documentation

Strategic Documents (Read These First!)

Technical Documentation

Reference Documentation

🎯 Success Metrics

MVP Success Criteria

  • 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

Technical Validation

  • 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

πŸ” What's NOT in Scope (For This Thesis)

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.

🀝 Academic Context

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.

πŸ“ License

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

About

A thesis MVP for a personalized anti-aging system that analyzes genetic SNPs and lifestyle habits using ML models (Random Forest and Neural Networks) to provide risk assessments and actionable recommendations. Built with FastAPI, React, PostgreSQL, and containerized via Docker for scalability and explainability.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages