CoolFace
Apppublic

AbhishekGowdaL05/AI-Based-Parkinson-Disease-Monitoring-and-Progression-Prediction

sourceHugging Facemitupdated 4mo agoView on Hugging Face
0likes
App README

๐Ÿง  Parkinson Disease Monitoring System

AI-Based Parkinson Disease Progression Prediction and Risk Assessment using Wearable Biomarkers, LSTM Deep Learning, and Machine Learning


๐Ÿ“Œ Overview

Parkinsonโ€™s disease is a progressive neurological disorder that gradually affects:

  • โ€”motor control
  • โ€”tremor behaviour
  • โ€”gait stability
  • โ€”movement consistency
  • โ€”sleep quality
  • โ€”physical activity

Traditional healthcare often detects worsening symptoms only during occasional hospital visits, which may delay treatment.

This project introduces an AI-powered continuous monitoring system that uses wearable biomarker data to:

โœ… Predict how much Parkinsonโ€™s disease has progressed โœ… Classify the patientโ€™s current risk level โœ… Generate personalized medical recommendations โœ… Create a final AI-generated health report


๐ŸŽฏ Problem Statement

Parkinsonโ€™s disease progression is gradual.

A patient may show:

  • โ€”worsening tremors
  • โ€”reduced gait stability
  • โ€”declining activity
  • โ€”sleep disturbances
  • โ€”inconsistent movement

These changes happen over weeks and months, but hospitals usually see only occasional snapshots.

Our Solution

Use wearable biomarker data + AI to:

  • โ€”monitor patients continuously
  • โ€”detect progression trends
  • โ€”predict severity early
  • โ€”assist doctors and caregivers

๐Ÿ— Project Architecture

text
Wearable Biomarker Data
        โ†“
Synthetic Dataset Generator
        โ†“
LSTM Model (Progression Prediction)
        โ†“
Risk Classifier (LOW / MEDIUM / HIGH / CRITICAL)
        โ†“
Recommendation Engine
        โ†“
AI Medical Report

๐Ÿ“Š Input Biomarkers

Our system uses 8 wearable biomarker parameters

ParameterDescription
Heart RatePhysiological stress indicator
SpO2Blood oxygen saturation
TemperatureMetabolic stability
Activity IntensityPhysical activity level
Movement ConsistencySmoothness of movement
Tremor SeverityParkinson tremor intensity
Gait StabilityWalking balance / stability
Sleep QualityNeurological recovery indicator

๐ŸŽฏ Outputs

The system predicts:


1. Progression Score (0โ€“100)

A continuous severity score indicating:

ScoreMeaning
0โ€“25Early / Stable
26โ€“50Mild Progression
51โ€“75Significant Progression
76โ€“100Advanced / Critical

2. Risk Level

Categorical output:

  • โ€”LOW
  • โ€”MEDIUM
  • โ€”HIGH
  • โ€”CRITICAL

3. Medical Recommendations

Examples:

  • โ€”Specialist consultation
  • โ€”Fall-risk prevention
  • โ€”Daily monitoring
  • โ€”Medication review
  • โ€”Caregiver support

๐Ÿค– Deep Learning Model โ€” LSTM

Why LSTM?

Parkinson progression is time-series behaviour

Not:

text
today only

But:

text
Week 1 โ†’ Week 2 โ†’ Week 3 โ†’ Week 4 ...

LSTM learns:

  • โ€”trend progression
  • โ€”temporal deterioration
  • โ€”symptom worsening patterns

LSTM Architecture

text
Input Layer (10 weeks ร— 8 biomarkers)
        โ†“
2-Layer LSTM
        โ†“
Dropout
        โ†“
Dense Layer
        โ†“
Progression Score

Purpose of each layer

Input Layer

Receives:

text
10 previous weeks of biomarker history

LSTM Layer

Learns:

  • โ€”memory of past symptoms
  • โ€”temporal progression
  • โ€”disease worsening trends

Dropout Layer

Prevents:

  • โ€”overfitting
  • โ€”memorization

Dense Layer

Converts learned temporal patterns into:

text
Progression Score

๐ŸŒฒ Machine Learning Risk Classifier

We use:

Random Forest Classifier

Purpose:

Converts:

text
Progression biomarker state

into:

text
LOW / MEDIUM / HIGH / CRITICAL

๐Ÿ“ˆ Model Performance

LSTM

  • โ€”Stable convergence
  • โ€”Predicts progression score using sequence learning

Risk Classifier

Achieved:

text
Accuracy โ‰ˆ 78%

This is realistic because healthcare biomarker classes overlap.


๐Ÿ—‚ Folder Structure

text
pd-monitor/
โ”‚
โ”œโ”€โ”€ data/
โ”‚   โ”œโ”€โ”€ synthetic_training_data.csv
โ”‚   โ”œโ”€โ”€ synthetic_test_data.csv
โ”‚   โ””โ”€โ”€ generate_data.py
โ”‚
โ”œโ”€โ”€ models/
โ”‚   โ”œโ”€โ”€ lstm_progression_model.pth
โ”‚   โ”œโ”€โ”€ risk_classifier.pkl
โ”‚   โ”œโ”€โ”€ scaler.pkl
โ”‚   โ”œโ”€โ”€ label_encoder.pkl
โ”‚   โ”œโ”€โ”€ lstm_model.py
โ”‚   โ””โ”€โ”€ train.py
โ”‚
โ”œโ”€โ”€ utils/
โ”‚   โ”œโ”€โ”€ predictor.py
โ”‚   โ”œโ”€โ”€ report_generator.py
โ”‚   โ”œโ”€โ”€ helpers.py
โ”‚   โ””โ”€โ”€ constants.py
โ”‚
โ”œโ”€โ”€ reports/
โ”‚   โ””โ”€โ”€ generated_reports/
โ”‚
โ”œโ”€โ”€ app.py
โ”œโ”€โ”€ requirements.txt
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ main.py

โš™ Installation

Clone repo

bash
git clone https://github.com/your-username/pd-monitor.git
cd pd-monitor

Create virtual environment

bash
python -m venv .venv
source .venv/bin/activate

Install dependencies

bash
pip install -r requirements.txt

๐Ÿš€ How to Run


1. Generate synthetic data

bash
python data/generate_data.py

2. Train models

bash
python models/train.py

3. Test predictor

bash
python utils/predictor.py

4. Launch dashboard

bash
streamlit run app.py

๐Ÿงช Example Prediction

Input

text
Heart Rate            : 92
SpO2                  : 94
Temperature           : 36.8
Activity Intensity    : 1.8
Movement Consistency  : 4.5
Tremor Severity       : 7.2
Gait Stability        : 3.4
Sleep Quality         : 4.2

Output

text
Predicted Progression Score : 65.54
Predicted Risk Level       : HIGH

Recommendations

  • โ€”Immediate specialist consultation advised
  • โ€”Daily wearable monitoring required
  • โ€”Medication review recommended
  • โ€”Fall-risk prevention measures required

๐ŸŒ Real-World Impact

This project helps:

Patients

Early disease monitoring


Families

Continuous care support


Doctors

Objective progression analysis


Hospitals

AI-assisted clinical decision support


๐Ÿ”ฎ Future Improvements

  • โ€”Real wearable device integration
  • โ€”Real patient hospital datasets
  • โ€”Fall detection module
  • โ€”Caregiver alert system
  • โ€”Long-term personalized treatment forecasting

๐Ÿ›  Tech Stack

  • โ€”Python
  • โ€”PyTorch
  • โ€”Scikit-learn
  • โ€”Pandas
  • โ€”NumPy
  • โ€”Streamlit
  • โ€”Joblib

Final Summary

This project uses wearable biomarker time-series data and deep learning to continuously monitor Parkinson patients, predict disease progression, classify severity, and generate AI-powered medical recommendations before the condition worsens.