A machine learning project to predict smoking status (Smoker/Non-Smoker) using health and lifestyle data. It includes data preprocessing, model training, evaluation, visualizations, and FastAPI-based deployment, supporting CI/CD and multiple datasets for robustness.
Last updated Jun 22, 2026
16
Stars
0
Forks
2
Issues
0
Stars/day
Attention Score
5
Language breakdown
Python 98.6%
Batchfile 0.9%
CSS 0.5%
โธ Files
click to expand
README
SmokingML: Advanced Smoking Behavior Prediction Using Machine Learning
Project Overview
An advanced machine learning system that predicts smoking behavior using health indicators and demographic data. The project implements multiple sophisticated ML models with extensive feature engineering and optimization techniques.
๐ Key Features
- Advanced Feature Engineering
- Multiple Model Implementation
- Comprehensive Model Optimization
- Robust Evaluation Framework
๐ Performance Metrics
ML Olympiad Dataset
- Accuracy: 0.777
- Precision: 0.720
- Recall: 0.798
- F1-Score: 0.757
- ROC-AUC: 0.860
Archive Dataset
- Accuracy: 0.772
- Precision: 0.696
- Recall: 0.677
- F1-Score: 0.686
- ROC-AUC: 0.863
๐ ๏ธ Technical Stack
- Programming Language: Python
- Key Libraries:
๐ Project Structure
SmokingML V2/
โโโ artifacts/ # Model artifacts and results
โโโ config/ # Configuration files
โโโ data/ # Dataset directory
โ โโโ processed/ # Processed datasets
โ โโโ raw/ # Raw data files
โโโ models/ # Trained model files
โโโ notebooks/ # Jupyter notebooks
โโโ src/ # Source code
โ โโโ components/ # Model components
โโโ tests/ # Unit tests
๐ Key Components
- Data Preprocessing
- Model Development
- Evaluation Framework
๐ Improvements and Optimizations
- Implementation of advanced feature interactions
- Custom ensemble methods for improved prediction
- Sophisticated handling of imbalanced data
- Enhanced model selection and validation process
๐ง Installation and Usage
- Clone the repository
- Create and activate virtual environment:
python -m venv SmokeMLv2venv
source SmokeMLv2venv/bin/activate # Linux/Mac
# or
SmokeMLv2venv\Scripts\activate # Windows
- Install dependencies:
pip install -e .
- Run the training pipeline:
python src/components/model_training.py
๐ Model Details
- Feature Set: 23 health indicators including:
- Model Architecture:
๐ฏ Future Improvements
- Integration of deep learning models
- Real-time prediction API
- Additional feature engineering
- Extended model interpretability
- Cross-population validation
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.Note: This project demonstrates advanced machine learning techniques, feature engineering, and model optimization for healthcare applications.
๐ More in this category