Giter VIP home page Giter VIP logo

mammogram-mass-detection's Introduction

mammogram mass detection

This project focuses on detecting the mass for mammogram based on Mask RCNN models using part of CBIS-DDSM dataset. Considering the small size of dataset, we preprocess it carefully and generate clean data using opencv and scikit. Finally, we use Mask-RCNN pretrained on ImageNet dataset to train based on detectron2.πŸ˜„

preprocess

The preprocess includes removing artifact, removing pectoral and adding black border based on opencv and scikit. Some outcomes are showed below. (The figures of outcome)

methods 1. cv2.equalizeHist() 2. skimage.feature.canny() 3. cv2.morphologyEx() 4. skimage.filter.sobel()
procedures 1. remove_artifact: image β€”> gray image β€”> (cv2.THRESH_OTSU) thresh β€”> (cv2.MORPH_CLOSE, cv2.MORPH_OPEN, cv2.MORPH_DILATE,cv2.morphologyEx) morph β€”> (get_largest_area)mask β€”> remove artifact
2. remove_pectoral: image removed artifact β€”> orient β€”> equalHist β€”> canny detection β€”> sobel β€”> morphological operation β€”> canny edge detection
3. add_border_denoise
usage 1. adjust your directory like this:
|--CBIS-DDSM
|&emsp |--mass_train
|&emsp &emsp |--mass_train
| &emsp |--mass_test
| &emsp &emsp |--mass_test
2. upload the image_process.py
3. adjust the original directory of CBIS-DDSM and run it

preprocess test

Here are some test results and if you want to see more, you can read from the direcotry of /preprocess/preprocess_test_result

original figure after thresholding and morph after removing artifact
image1 image2 image3
after equalHist,canny,sobel after morph after canny
image4 image5 image6
after hough line detection after selecting
image7 image8

train

usage 1. upload the utils.py
2. run the code
test results algorithm-screenshot

something to improveπŸƒ

  1. CBIS-DDSM is not completely used and this experiment just use about 1200 mass train dataset and about 360 mass test datasets.
  2. The quality of medical images are not stable so some pictures can not be preprocessed well while some others can.
  3. The procedure of preprocessing also generates noise of images which can be seen obviously through artifact_mask.jpg

other

  1. I would appreciate it very much if you could give me a star.❀️
  2. Improvements are encouraged and I am expected to that.🌈

references

Many thanks for useful references belowπŸ’—

  1. https://github.com/gsunit/Pectoral-Muscle-Removal-From-Mammograms
  2. https://arxiv.org/pdf/1703.06870v3.pdf
  3. https://github.com/facebookresearch/detectron2/blob/main/MODEL_ZOO.md

mammogram-mass-detection's People

Contributors

mia-code112233 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.