A non-invasive anemia detection system using conjunctiva and nail bed analysis
This project provides a web-based solution for detecting anemia through eye a nd nail images using:
- Deep Learning: ResNet50 models for image classification
- Frontend: TypeScript, React.js, with modern UI/UX
- Backend: Flask CORS API serving predictions
| Component | Technology |
|---|---|
| Frontend | React, TypeScript, TailwindCSS, Vite |
| Backend | Flask, Python 3.10+ |
| AI Models | TensorFlow/Keras (ResNet50 architecture) |
| Build Tools | npm, pip, git |
- Python 3.10+
- Node.js 16+
- Git
cd backend
pip install -r requirements.txt
# Set environment variables
export EYE_MODEL_PATH="./path_to/eye_model_ResNet.keras"
export NAIL_MODEL_PATH="./path_to/nail_model_ResNet.keras"
# Run server
python app.pycd frontend
npm install
npm run dev- Download datasets from Google Drive
- Run generators:
python backend/generators/Eye_ResNet50_Generator.py
python backend/generators/Nail_ResNet50_Generator.pyNote: Update paths in generator scripts before running
- Dual-Model Analysis: Combines eye conjunctiva and nail bed assessment
- Responsive UI: Mobile-friendly interface
- Confidence Scoring: Provides prediction confidence percentages
- Developer Friendly: Well-documented code with type hints
- Access frontend at
http://localhost:5173 - Upload eye/nail images through the interface
- View real-time predictions
- Run frontend and backend in separate terminals
- Model paths must be correctly configured
- For production, use environment variables for sensitive data
Contributions welcome! Please:
- Fork the repository
- Create your feature branch
- Submit a pull request
For support or questions:
- Email: syedabdulkareemahmed@gmail.com
- GitHub: @92kareeem
MIT License - See LICENSE for details




