Skip to content

A deep learning-based blood group detection system using infrared hand images. The project includes data preprocessing, model training, and a Flask web app for real-time predictions.

Notifications You must be signed in to change notification settings

RAHULPATEL2002/blood-group-detection

Repository files navigation

Blood Group Detection Using Infrared Hand Images

image

image

Overview

This project utilizes deep learning techniques to detect blood groups from infrared images of hands. By analyzing spectroscopic features, the model classifies blood types with high accuracy.

Features

  • Automated blood group classification
  • Uses infrared hand images for detection
  • Deep learning-based model trained on a labeled dataset
  • Flask web application for easy interaction

Dataset

The dataset consists of infrared images categorized into different blood groups:

/dataset_folder
    /train
        /A Positive
        /A Negative
        /AB Positive
        /AB Negative
        /B Positive
        /B Negative
        /O Positive
    /test
    /validation

Installation

  1. Clone the repository:
    git clone https://github.com/RAHULPATEL2002/blood-group-detection.git
    cd blood-group-detection
  2. Install dependencies:
    pip install -r requirements.txt
  3. Run the Flask application:
    python app.py

Model Training

To train the model, execute:

python train_model.py

The trained model is saved as blood_group_model_vgg16.h5.

Usage

  1. Start the Flask app and open the web interface.
  2. Upload an infrared image of a hand.
  3. The model predicts and displays the blood group.

Screenshots

Model Training

Screenshot 2025-03-10 054922

Web Interface

image

image

image

Technologies Used

  • Python
  • TensorFlow/Keras
  • OpenCV
  • Flask

Results

The model achieved an accuracy of 93% on the test dataset. Below is the confusion matrix:

Screenshot 2025-03-10 054656

Contributors

  • Rahul Patel - Developer

Feel free to contribute to this project by submitting issues or pull requests!

About

A deep learning-based blood group detection system using infrared hand images. The project includes data preprocessing, model training, and a Flask web app for real-time predictions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published