GithubHelp home page GithubHelp logo

blackhat-coder / blood-spectroscopy Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 4.15 MB

My solution to Blood Spectroscopy Challenge hosted by bloods.ai on Zindi to perform blood analysis non invasively by using spectral data gotten from NIR(Near Infra-Red).

License: MIT License

Jupyter Notebook 100.00%

blood-spectroscopy's Introduction

Bloods.ai

My solution to Blood Spectroscopy Challenge hosted by bloods.ai on Zindi to perform blood analysis non invasively by using spectral data gotten from NIR(Near Infra-Red).

Overview

Traditionally we do blood analysis by collecting blood samples from patients and perform different tests on the samples. In this competition, you will help scientists from bloods.ai to make progress towards non-invasive blood analyses. For this purpose, you build machine learning models that can classify the level of specific chemical compounds in samples from their spectroscopic data. In simple terms when we direct a beam of light towards a sample, the light is partially absorbed and/or reflected based on the sample's molecular structure (different chemical compounds present).

Data Collection

Raw data is obtained as a result of the scanner shining light into the target (in this case, a fingertip). The information is presented as a function of wavelength in nanometers (nm). In order to account for all wavelength data, the results are registered as an array of values(170 intensity values per scan).

To create a reliable scan, the operation is done 60 times. Temperature and humidity are also taken into consideration. Each of the 60 scans has 170 intensities, which take into account the temperature and humidity at the time of the scan.

Bilogical Window

On the electromagnetic spectrum, NIR spectra cover the wavelength range of 750-2500 nm. This is known as the biological window, and it is within this range that we will be working on this problem. We can collect signatures of chemical substances present in blood that flows close to the skin's surface blood vessels in this way. The penetration depth in millimeters of each wavelength over the near infrared band is depicted in the diagram below.

Spectral Signature of Compounds

Cholesterol Signature Graph, Glucose Signature Graph, Hemoglobin Signature Graph (From Left to Right)

Setup

  • Download Data Files
  • Unzip Additional_hdl_rows_483.zip Additional_ldl_rows_410.zip Additional_hgb_rows_965_LOW_STD.zip Additional_ldl_rows_135_LOW_STD.zip Additional_hgb_rows_2457.zip Additional_hdl_rows_162_LOW_STD.zip
 >> git clone https://github.com/blackhat-coder/Blood-Spectroscopy/
  • Navigate to Working Directory /Blood-Spectroscopy/, Run:
 >> mkdir Additional
 >> pip install -r requirements.txt

Usage(Jupyter Notebook)

Open EDA.ipynb to access source codes. You can also make edits to suite your hacking style โ˜บ

You can access Findings.txt to explore some of my ideas.

Acknowledgements

Some of the things I found useful while tackling this challenge

  • SpectraAI : Even though I had a hard time setting up and probably didn't use it. SpectraAI provides a deep learning framework to facilitate the training of neural networks on spectral data.

Papers

Hardware Requirements

  • A computer with CPU :)
  • A cup of cofee โ˜•

Licence

License: MIT

blood-spectroscopy's People

Contributors

blackhat-coder avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mokhlesurrahman

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.