DiafooT is a research initiative focused on improving the management and prevention of diabetic foot complications, particularly those at risk of amputation due to neuropathy and vascular issues. Our goal is to enhance patient outcomes by identifying and treating the underlying causes of foot injuries, ultimately preserving mobility and quality of life. 🌍
Globally, approximately 500 million people live with diabetes, many of whom face severe complications such as neuropathy (loss of sensation in the feet) and arteriopathy (impaired blood flow). These conditions contribute to chronic wounds and amputations, with a lower limb amputation occurring every 20 seconds worldwide. Current healthcare systems often lack effective prevention and treatment strategies, leading to suboptimal outcomes.
Our research aims to:
- Understand the intrinsic (e.g., skin thickness, bone geometry) and extrinsic (e.g., gait mechanics, pressure distribution 🚶) factors contributing to foot injuries.
- Develop methods to give patients more time before complications escalate , preserving their body and enabling a more active life.
- Prevent new wounds and recurrences by addressing root causes through clinical observation and data-driven analysis.
We analyze parameters such as skin stiffness, pressure points, and vascular properties to identify correlations and develop predictive models. By clustering patients based on risk grades (IWGDF Grades 0–3) and without it, we aim to tailor interventions to specific patient profiles.
The project leverages clinical data stored in Excel file 📑 with a dedicated "DIAFOOT" sheet. We use advanced analytical tools to process and visualize this data, including:
-
Streamlit 🌐: For interactive dashboards to explore data and analysis results.
-
Python Libraries:
- Core:
datetime,io,re - Data Handling:
pandas,numpy - Visualization:
matplotlib,seaborn - Statistical Analysis:
scipy,statsmodels(includingMANOVA) - Machine Learning & Clustering:
scikit-learn(KMeans,AgglomerativeClustering,GaussianMixture,LogisticRegression,LinearRegression,RandomForestClassifier,IsolationForest,PCA,SimpleImputer,StandardScaler) - Metrics & Evaluation:
silhouette_score,adjusted_rand_score,normalized_mutual_info_score,calinski_harabasz_score,davies_bouldin_score,confusion_matrix - Web App Development:
streamlit
Used for data processing ⚙️, statistical analysis 📉, clustering 🧩, modeling 🤖, and visualization 🎨.
- Core:
- Analysis Dashboard: Diafoot Analysis
-
Clone the repository:
git clone https://github.com/helya1/DiafooT.git
-
Create a virtual environment and activate it:
python3 -m venv .venv source .venv/bin/activate -
Install the required dependencies:
pip install -r requirements.txt
To set up the Streamlit application locally, follow these steps:
pip install streamlit pandas matplotlib seabornRun the app with:
streamlit run dashboard.pyThe dashboard.py script powers the DIAFOOT Analysis Dashboard, providing a user-friendly interface for uploading and analyzing clinical data. Below is a breakdown of its functionality:
- Users upload an Excel file containing a "DIAFOOT" sheet, which is read into a Pandas DataFrame.
The sidebar now offers multiple analysis types, selected via a radio button menu:
- **Basic Analysis **: Runs quick preliminary checks on the dataset.
- Descriptive Analysis: Generates detailed descriptive statistics for all parameters.
- Normality Tests: Applies tests such as Shapiro–Wilk to assess data distribution.
- **L/R Comparison by Anatomical Zone **: Compares left vs right foot data within anatomical zones.
- **Comparison of Left and Right Foot Parameters **: Performs paired comparisons for overall foot parameters.
- Diabetic vs Control: Compares parameters between diabetic and control groups.
- **IWGDF Risk Grade Summary & Clustering **: Summarizes risk grades and performs clustering.
- Clustering (Important Parameters): Applies clustering algorithms (KMeans, Agglomerative, GMM) using selected key features.
- Clustering (All Parameters): Runs clustering on the full set of parameters and evaluates metrics (silhouette, ARI, etc.).
- Correlation Between Key Parameters: Computes and visualizes correlations between biomechanical and clinical parameters.
- Bland–Altman Plots by Parameter and Side: Generates Bland–Altman plots for each parameter by left/right side.
- Bland–Altman Pooled Plots for All Parameters: Creates pooled Bland–Altman plots across all parameters.
- Automation: Calculations update automatically when new patient data is added to the Excel file.
- Interactivity: Users can select analysis types, groups, and thresholds (e.g., correlation threshold).
- Explanations: Expander sections provide insights into metrics (e.g., silhouette score, ARI) and chart interpretations.
The DIAFOOT study focused on middle-aged adults with diabetes (mean age ≈57 years; mean BMI ~25.8 kg/m²), a population where foot pressure and ulcer risk typically begin to rise. Most participants were classified at the extremes of the IWGDF risk scale (Grades 0 or 3), providing valuable insight into early- and late-stage risk profiles.
- Neuropathy & Soft Tissue Integrity: Peripheral nerve dysfunction and reduced plantar fat pad thickness remain core predictors of diabetic foot ulcer (DFU) risk. Neuropathy prevalence was strikingly high in at-risk groups.
- Biomechanical & Thermal Asymmetries: Significant left/right differences were observed in plantar pressure (notably under the 5th metatarsal), big toe stiffness, and plantar temperature. These imbalances can signal uneven load distribution, vascular stress, or subclinical inflammation.
- Correlations:
- Plantar tissue thickness ↔ plantar temperature: ρ ≈ 0.99 (thermal insulation effect)
- IWGDF risk grade ↔ Michigan Neuropathy Score: ρ ≈ -0.83 (neuropathy severity aligns with higher risk)
Using LASSO regression, Random Forests, and ANOVA-based feature ranking, the top predictors of DFU risk were:
- Michigan Neuropathy Score
- Patient height
- Plantar tissue thickness
This convergence across algorithms highlights the robustness of these markers. Simple, non-invasive measurements (neuropathy tests, anthropometrics, ultrasound) could enable scalable DFU screening.
Bottom line:
Our results demonstrate that readily measurable foot parameters neuropathy, plantar pressure, stiffness, tissue thickness, and temperature can powerfully stratify DFU risk. Integrating these metrics into clinical workflows may enable earlier detection and personalized prevention strategies, especially in primary care or resource-limited settings.