Documentation Index
Fetch the complete documentation index at: https://mintlify.com/jonatan-leal/ia-proyecto-sustituto/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The diabetes prediction model analyzes 8 patient characteristics to assess diabetes risk. This page provides detailed medical context for each feature, helping healthcare professionals understand what the model considers when making predictions.Total Features: 8 (2 categorical, 6 numeric)Clinical Basis: All features are established diabetes risk factors in medical literature
Feature Summary Table
| Feature | Type | Clinical Significance | Normal Range | High Risk |
|---|---|---|---|---|
| Gender | Categorical | Metabolic differences | N/A | Male (slightly) |
| Age | Numeric | Risk increases with age | N/A | >45 years |
| Hypertension | Binary | Insulin resistance marker | 0 (no) | 1 (yes) |
| Heart Disease | Binary | Metabolic syndrome indicator | 0 (no) | 1 (yes) |
| Smoking History | Categorical | Inflammatory effects | never | current |
| BMI | Numeric | Obesity indicator | 18.5-24.9 | ≥30 |
| HbA1c Level | Numeric | Long-term glucose control | <5.7% | ≥6.5% |
| Blood Glucose | Numeric | Current glucose level | <100 mg/dL | ≥126 mg/dL |
1. Gender
Description
Biological sex of the patient.- Medical Significance
- Data Format
- Example Cases
Why Gender Matters for Diabetes:
- Hormonal Differences: Estrogen and testosterone affect insulin sensitivity
- Body Composition: Men tend to accumulate visceral fat (higher diabetes risk)
- Prevalence: Slightly higher diabetes rates in men in some populations
- Complications: Women with diabetes have higher cardiovascular mortality
- Type 2 diabetes is ~1.5x more common in men
- Women with PCOS (polycystic ovary syndrome) have elevated risk
- Gestational diabetes increases future type 2 risk in women
2. Age
Description
Patient’s age in years.Clinical Significance
Risk Progression
Diabetes risk increases dramatically after age 45, with peak incidence in 65-79 age group
Physiological Changes
Aging causes decreased insulin secretion, increased insulin resistance, and reduced beta-cell function
Age-Related Risk Factors
Medical Context
Why Age Increases Diabetes Risk
Why Age Increases Diabetes Risk
- Beta-Cell Decline: Pancreatic beta cells produce less insulin with age
- Increased Visceral Fat: Abdominal fat accumulation worsens with age
- Mitochondrial Dysfunction: Cellular energy metabolism becomes less efficient
- Chronic Inflammation: Age-related inflammation affects insulin signaling
- Sarcopenia: Muscle loss reduces glucose disposal capacity
Data Format
Example Risk Profiles
- Low Risk (Young)
- Moderate Risk (Middle Age)
- High Risk (Elderly)
3. Hypertension
Description
Indicates whether the patient has been diagnosed with high blood pressure.Clinical Significance
Hypertension and diabetes frequently co-occur in metabolic syndrome:Shared Pathophysiology
Both conditions involve:
- Insulin resistance
- Endothelial dysfunction
- Chronic inflammation
- Sympathetic nervous system overactivity
Bidirectional Risk
- Hypertension increases diabetes risk by 2-3x
- Diabetes increases hypertension risk
- Together, they amplify cardiovascular complications
Medical Definition
Hypertension Diagnosis:- Systolic BP ≥ 140 mmHg, OR
- Diastolic BP ≥ 90 mmHg
- Measured on multiple occasions
Data Format
0: No hypertension diagnosis1: Has hypertension
Prevalence
Co-occurrence: ~75% of people with diabetes also have hypertensionIn Dataset: Approximately 7-10% of patients have hypertension=1
4. Heart Disease
Description
Indicates whether the patient has been diagnosed with cardiovascular disease.Clinical Significance
Heart disease and diabetes share common risk factors and mechanisms:Atherosclerosis
Both conditions accelerate plaque buildup in arteries through oxidative stress and inflammation
Metabolic Syndrome
Heart disease, diabetes, hypertension, and obesity cluster together in metabolic syndrome
Relationship with Diabetes
Why Heart Disease Predicts Diabetes
Why Heart Disease Predicts Diabetes
- Shared Etiology: Both stem from insulin resistance and metabolic dysfunction
- Inflammatory State: Cardiovascular inflammation impairs insulin signaling
- Endothelial Dysfunction: Damaged blood vessel lining affects glucose metabolism
- Medication Effects: Some cardiac medications (beta-blockers, thiazides) can worsen glucose control
Data Format
0: No heart disease diagnosis1: Has heart disease (CAD, MI, CHF, etc.)
Clinical Implications
5. Smoking History
Description
Patient’s smoking status and history.Clinical Significance
Smoking affects diabetes risk through multiple mechanisms:Categories
- No Info (0)
- Current (1)
- Ever (2)
- Former (3)
- Never (4)
- Not Current (5)
Code: 0Meaning: Smoking history not available or not documentedClinical Handling: Assume unknown risk; request information if possible
Data Format
Risk Quantification
Relative Diabetes Risk by Smoking Status:6. BMI (Body Mass Index)
Description
A measure of body fat based on height and weight: BMI = weight (kg) / height² (m²)Clinical Significance
BMI Categories
- Classification
- Pathophysiology
- Clinical Thresholds
| BMI Range | Category | Diabetes Risk |
|---|---|---|
| < 18.5 | Underweight | Low |
| 18.5 - 24.9 | Normal Weight | Baseline (1x) |
| 25.0 - 29.9 | Overweight | 2-3x |
| 30.0 - 34.9 | Obese (Class I) | 5-7x |
| 35.0 - 39.9 | Obese (Class II) | 7-10x |
| ≥ 40.0 | Obese (Class III) | 10-12x |
Data Format
Example Profiles
7. HbA1c Level (Hemoglobin A1c)
Description
Average blood glucose level over the past 2-3 months, expressed as a percentage.Clinical Significance
Gold Standard: HbA1c is the primary diagnostic test for diabetes and the best indicator of long-term glucose control.
How HbA1c Works
Biochemistry
Biochemistry
Glycation Process:
- Glucose in blood binds to hemoglobin in red blood cells
- Higher blood glucose → more glucose-hemoglobin binding (glycation)
- Red blood cells live ~120 days, so HbA1c reflects 2-3 month average
- Measured as percentage of hemoglobin that’s glycated
- Not affected by recent meals (fasting not required)
- Stable day-to-day
- Reflects long-term control
- Strong predictor of complications
Diagnostic Thresholds
- Classification
- Risk Stratification
- Treatment Targets
| HbA1c Level | Category | Interpretation |
|---|---|---|
| < 5.7% | Normal | Healthy glucose metabolism |
| 5.7% - 6.4% | Prediabetes | Impaired glucose tolerance; reversible |
| ≥ 6.5% | Diabetes | Diagnostic for diabetes (if confirmed) |
| ≥ 8.0% | Poorly Controlled | Urgent intervention needed |
| ≥ 9.0% | Very Poor Control | High complication risk |
Data Format
Conversion to Average Glucose
Estimated Average Glucose (eAG):Example Risk Profiles
8. Blood Glucose Level
Description
Current blood glucose (sugar) concentration, measured in mg/dL (milligrams per deciliter).Clinical Significance
Snapshot Measurement
Unlike HbA1c (2-3 month average), blood glucose shows current glucose level at time of measurement
State-Dependent
Interpretation depends on when measured: fasting, post-meal, random, etc.
Diagnostic Thresholds
- Fasting Glucose
- Random Glucose
- Oral Glucose Tolerance Test
Measured after 8+ hours without food:
| Glucose Level | Category | Interpretation |
|---|---|---|
| < 100 mg/dL | Normal | Healthy glucose regulation |
| 100-125 mg/dL | Prediabetes | Impaired fasting glucose |
| ≥ 126 mg/dL | Diabetes | Diagnostic if confirmed |
Dataset Context: The dataset doesn’t specify fasting status, so interpretation requires caution.
Data Format
Clinical Ranges
Relationship with HbA1c
Blood glucose and HbA1c should correlate:Example Patient Cases
- Case 1: Normal
- Case 2: Prediabetic
- Case 3: Diabetic
Feature Interactions
The model considers combinations of features:High-Risk Combinations
Protective Combinations
Clinical Applications
Screening Decisions
Use feature values to determine screening intervals:Intervention Priorities
Focus interventions based on modifiable features:- BMI: Weight loss is first-line intervention
- Smoking: Cessation reduces risk and complications
- Blood Pressure: Control hypertension if present
- Glucose: Lifestyle changes to lower HbA1c
- Age
- Gender
- Heart disease history
Summary: Feature Importance
Based on medical literature and model feature importance:Next Steps
Model Architecture
Learn how these features are used in the RandomForest model
Data Preprocessing
Understand how features are encoded and scaled
Dataset Overview
See the full dataset structure and distribution
Quick Start
Start making predictions with these features