This project implements a glucose monitoring system that works without breaking the skin, using Near-Infrared (NIR) Spectroscopy. The system uses an 18-channel NIR sensor to detect glucose levels by analyzing how light is absorbed and reflected at different wavelengths up to 940 nanometers.
The system operates on the principle of NIR spectroscopy:
- Light is emitted at 18 different wavelengths through the NIR sensor
- Some light is absorbed by the tissue and glucose molecules
- Some light is reflected back to the sensor
- The absorption/reflection patterns at different wavelengths correlate with glucose levels
- Data is collected every 5 minutes to track glucose variations
- Input Features: 18 channels of NIR wavelength data
- Target Variable: Continuous Glucose Monitoring (CGM) values
- Sampling Rate: Data points collected every 5 minutes
- Time Period: Multiple days of readings
- Statistical summary of channel readings
- Correlation analysis between channels and CGM values
- Time series analysis of glucose patterns
- Identification of key wavelengths with strong glucose correlations
- Signal preprocessing and noise reduction
- Feature selection based on wavelength importance
- Time-based feature extraction
- Handling missing values and outliers
Various models are implemented and compared:
- Classical Least Squares (CLS) Calibration
- Partial Least Squares (PLS) Regression
- Support Vector Regression (SVR)
- Neural Networks
- Random Forests
- Ridge Regression
- Root Mean Square Error (RMSE)
- Mean Absolute Error (MAE)
- R² Score
- Mean Absolute Percentage Error (MAPE)
- Explained Variance Score
- Python-based analysis using libraries like NumPy, Pandas, Scikit-learn
- Time series analysis tools
- Machine learning models for glucose prediction
- Visualization using Matplotlib and Seaborn
- Identification of most relevant NIR wavelengths for glucose detection
- Analysis of prediction accuracy across different models
- Understanding of temporal patterns in glucose variations
- Correlation between specific wavelengths and glucose levels
- Model optimization and hyperparameter tuning
- Real-time prediction implementation
- Integration with wearable devices
- Enhanced feature engineering techniques
- Improved accuracy through ensemble methods