The Hypertension Stage Prediction Project utilizes a decision tree classifier (DTC) trained on a comprehensive hypertension dataset. This dataset includes critical features such as blood pressure readings, BMI, cholesterol levels, and lifestyle indicators. The primary objective is to predict hypertension stages, enabling early identification and intervention for individuals at risk.
The dataset includes preprocessed features such as:
- Age (years): Converted from raw 5-digit age format.
- BMI: Calculated using height and weight.
- Blood Pressure Categories: Encoded for efficient processing.
Model: The project uses a DecisionTreeClassifier, achieving 100% accuracy on the test dataset after normalization using MinMaxScaler
. This ensures feature scaling for optimal model performance.
- Dataset cleaning: Removed irrelevant columns (
id
,bp_category
). - Applied Ordinal Encoding to categorical variables (e.g.,
bp_category_encoded
). - Feature engineering: Added
age_years
andbmi
.
- Split dataset: 80-20 training-test split with a fixed random state (101).
- Applied
MinMaxScaler
for feature scaling. - Achieved 100% test accuracy using a DecisionTreeClassifier.
- Developed an interactive HTML form for feature input.
- Backend implementation in Flask to handle predictions and return results in real-time.
The model categorizes hypertension into the following stages:
- Elevated
- Hypertension Stage 1
- Hypertension Stage 2
- Normal
Results are delivered with near-instantaneous processing, providing actionable insights to users. Testing demonstrated flawless stage prediction on unseen data.
- Clinical Decision Support: Assists healthcare providers in classifying hypertension stages for diagnosis and treatment planning.
- Health Monitoring Apps: Integration into wearable devices or mobile applications for proactive health management.
- Public Health Analytics: Enables trend analysis in population health studies.