Giter Club home page Giter Club logo

teamoutliers6 / teamoutliers Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 2.46 MB

This project is a result of the requirements by Allwyn Corporation. It is an image processing and deep-learning based project focused on healthcare data . The project aims to perform image processing on CT Scans images of L3 slice and extract the various fats areas using Deep Learning to calculate the Visceral Fat Index.

HTML 61.62% Jupyter Notebook 37.37% Python 1.00%
image-processing image-recognition computer-vision deep-learning deep-neural-networks kmeans-clustering-algorithm kmeans-image-clustering convolutional-neural-networks unet-image-segmentation streamlit-webapp

teamoutliers's Introduction

Visceral Fat and Lung Cancer

This is a healthcare related project where Image Processing and Deep learning models along with Computer Vision libraries are used for image segmentation and area calculation of fat regions to calculate the Visceral Fat Index (VFI) in the CT scan images of 30 patients.

The details of each folder is as below :

Table of Contents

Data-Preprocessing

The 30 raw input dataset images were pre-processed by removing the region of interest, thresholding and adjusting the brightness and contrast to make it more clear before using it for the segmentation. The breakdown of the files are as follows:

  • L3_datapreprocessing The central region of the raw images is the region of interest that contains the fat, bone and muscles. This code is used to extract the central region of interest (ROI) first and then the central region extracted from the raw input images is further cleaned by removing the blurrness to make the image more clear and understandable for segmentation. In order to run this code the file contour_lib.py is required to be imported.

    The complete images pre-processing workflow is as below : image

Deep_Learning_Segmentation_Models

The clean and pre-processed images are used for segmentation of SAT and VAT in order to calculate the Visceral fat Index (VFI). The breakdown of each file inside this folder is as below :

  • K-Means Segmentation This folder contains the Kmeansegmentation.ipynb file where segmentation was doene on ImageJ created images to segment the fat region from the bone, muscle and other elements.However VFI calculation was not successfull using this algorithm.

  • Segmentation CNN

    • Seg_CNN This was the second approach where Convolutional Neural Networks was used for VAT and SAT segmentation using Conv 1D and 2D. Firstly, we performed thresholding to get only the pixels related to VAT and SAT, these thresholded images are used as masks and we performed conv 1D and 2D. As the results were not satisfactory we then used painted images which are generated from ImageJ as masks. However, the results were not satisfactory. By an observation made during our research we founded that thresholded images did have the fat areas required for calculation of VFI. Though segmentation CNN did not provide proper results, the thresholded images were useful for calculating VFI.

    • L3_thresholding This file contains code for generating thresholded images. we used a combination of Binary Inverse thresholding and Tozero thresholding to get the outputs.

  • Segmentation using CV This was a successful approach where VAT was extracted from the image using Computer Vision which was then used for VFI calculation. It is the same code as the Extractionof Region of Interest use din data pre-processing and requires the file contour_lib.py to be imported. Below is and example : image

  • U-NET Algorithm This folder contains the code for the VAT and SAT segmentation using a complex network called U-NET. This approach did not yield the results as expected.

ProjectFlow_Diagram

The whole workflow of this project from the start to the end is shown in this project Flow Diagram. It contains the errors we faced during the implementation of various algorithms and also outcomes of the succesfull ones. image

Raw_Input_Images

This folder contains 30 raw input dataset images which was used for pre-processing and later segmentation.

image

StreamLit-Library

  • StreamLit is an open source application framework in python library, which creates an easy way to share beautiful and custom web pages to deploy the images to get outputs. - It also allows the users to quickly build interactive web applications about their models.
  • The main purpose of this approach is to provide graphical user interface, where it will create a webpage user interface where a common person with no background knowledge on image processing can easily view or play around with these images.
  • It can also be considered as an easiest way of viewing the output images.

image

VAT_Segmented_Outputs

This folder contains the 30 VAT segmented images from the 30 input images, where we can clearly see the segmeted region with VAT. This can be clearly observed when raw image and segemented image is compared.

VFI_for_30_images.xlsx

This file contains the VFI(Visceral Fat Index) which is calculated for the 30 images of the dataset. It can be seen in the file where it shows the calculated VFI using CV algorithm and VFI using ImageJ tool.

teamoutliers's People

Contributors

rshinde03 avatar teamoutliers6 avatar

Watchers

 avatar

Forkers

rshinde03

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.