This project implements advanced neural network models for accurate prediction of body fat percentage using anthropometric measurements. Through comprehensive analysis and optimization, we've developed both full-feature and reduced-input models that achieve high accuracy while maintaining practical applicability.
- Multi-layer perceptron models with optimized hidden layer configurations
- Support for both comprehensive and reduced-input feature sets
- Adaptive learning with early stopping and optimization
- Detailed correlation analysis of body measurements
- Feature importance evaluation through sensitivity analysis
- Extensive model performance comparisons
- R² score of 0.9724 for full-feature model
- MSE as low as 1.9250 on test data
- Robust performance across different body types
- Intelligent reduction of input measurements
- Maintains high accuracy with fewer required measurements
- Practical implementation considerations
- Detailed performance metrics and comparisons
- Feature correlation heatmaps
- Model sensitivity analysis plots
- Clone the repository:
git clone https://github.com/ChanMeng666/bodyfat-estimation-mlp.git
cd bodyfat-estimation-mlp
- Install required packages:
pip install -r requirements.txt
- Run the Jupyter notebooks:
jupyter notebook
Model Type | R² Score | MSE | Hidden Layers |
---|---|---|---|
Full Input | 0.9724 | 1.9250 | 20 |
Reduced Input | 0.9617 | 2.6734 | 5 |
├── notebooks/
│ ├── Part3_(i)_Qualitative_Analysis.ipynb
│ ├── Part3_(ii)_Network_Performance.ipynb
│ ├── Part3_(iii)_Correlation_Analysis.ipynb
│ ├── Part3_(iv)_Reduced_Input_Model.ipynb
│ ├── Part3_(v)_Sensitivity_Analysis.ipynb
│ ├── Part3_(vi)_Performance_Comparison.ipynb
│ └── Part3_(vii)_Summary.ipynb
├── data/
│ └── Body_Fat.csv
├── models/
│ ├── best_full_model.keras
│ └── best_reduced_model.keras
├── requirements.txt
└── README.md
This project is licensed under the MIT License - see the LICENSE file for details.
- Dataset sourced from clinical body composition measurements
- Research methodology based on neural network optimization techniques
- Performance metrics and analysis methods from established machine learning practices
For detailed implementation and analysis, please refer to the individual notebooks in the repository.