Skip to content

Rajaguhan437/Cell_Detect-Quantitative-Representation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 

Repository files navigation

Cell_Detect-Quantitative-Representation

AIM :

  • 1. Cell Detection

  • 2. CNN[Deep Learning] - Based Image Analysis for Quantitative Representation

  • Dataset : 90 Train + 10 val RBC/WBC Image Dataset with Annotation. And chose to go with this dataset because there were no datasets with many different types of classes(cells) i.e, more than 3 or more with annotated data.

                   Sample Image

      Input Image Annotated Label-Image

         Input-Image        Annotated-Labelled Image

  • Object-Detection Model : Custom Trained Yolov5

  • Training Output :

      Trained Model-Weights on 300 Epochs : Click Here

      Yolo_Layers

      Yolo_val_detect

      Bounding Box Detections, Confidence Scores, Class of each cell are stored in this Excel Sheet with the help pandas python library.

CNN[Deep Learning] - Based Image Analysis for Quantitative Representation:

  • 1. Cell Segmentation

  • 2. Cell Image Quantitative Feature Extraction

Cell Segmentation :

  • 1. SAM Model

  • 2. Yolov8-seg Model

  • 3. Yolov5-det Model

  • Segment Anything Model (SAM) : a new AI model from Meta AI that can "cut out" any object, in any image, with a single click SAM is a promptable segmentation system with zero-shot generalization to unfamiliar objects and images, without the need for additional training.

  • Chose this Model because of its Zero-Shot Generalization and its performance.

  • SAM without any training segmnented the cells and the results were very good except the fact that it didn't segment WBCs.

  • So, thought of custom training but it was a very heavy process. So, chose to go with Yolo Family.

                    Images

      Input Image Segmented Output-Image

         Input-Image        Segmented-Masked Image

  • Fast, precise and easy to train, Ultralytics YOLOv5 has a long and successful history of real time object detection. Treat YOLOv5 as a university where you'll feed your model information for it to learn from and grow into one integrated tool. With YOLOv5 and its Pytorch implementation, you can get started with less than 6 lines of code.

  • With already custom trained yolov5-det model, the Bounding Box Detections, Confidence Scores, Class of each cell are computed and applied on the image.
      Bounding Box on Each Cell

  • Then each cell are cropped to find its Quantitative Features.
      Cropping the Bounded Box Area

  • 1. Geometric Properties

    • Height
    • Width
    • Area
    • Perimeter
    • Aspect Ratio
    • Major Axis
    • Minor Axis
    • Solidity
    • Eccentricity
    • Convexity
    • Feret_Diameter
    • Orientation
  • 2. Color Identification

    • RGB Values
    • HEX Values
    • Color Word
  • 3. Texture Properties

  • 4. Intensity Properties

  • All properties were computed using Computer Vision[cv2] & Scikit-Learn Python Libs.

  • All the above properties are stored in Excel Sheet with the help of pandas library.

Note :

Extras :

About

Cell Detection and Cell Segmentation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published