Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hyperspectral SWIR image analysis #105

Open
8 tasks
wincowgerDEV opened this issue Nov 3, 2021 · 7 comments
Open
8 tasks

Add hyperspectral SWIR image analysis #105

wincowgerDEV opened this issue Nov 3, 2021 · 7 comments
Labels
enhancement New feature or request R package Relates to the OpenSpecy R package and associated functions Shiny app Relates to the OpenSpecy Shiny app/GUI implementation

Comments

@wincowgerDEV
Copy link
Owner

@afalty and I just spoke about their hyperspectral image analysis routine and database. They have plans to make the database and analysis routine open source and want to see it applied in Open Specy. I think this new technology has a ton of applications in microplastic research and overlap with other hyperspectral images for FTIR and Raman which we have plans to implement in the future.

Their database has 4 polymers, marine samples, PE, PET, PS, PP, weathered plastic, 250 particles of each polymer, Hyspex images, down to 100 microns - 150 microns, dry samples on a filter, preprocessing for light source.

They have a multivariate model to divide the particles by polymer type, Simca model, pca for each class.

They will share some preliminary code and data in the next month and will be publishing their results with a draft sent out by the new year, 3-4 months for publication.

Steps to implement the data and code:

  • Add the reference dataset to Open Specy's file download list.
  • Add a button on the home screen which allows the user to select that they want to analyze hyperspectral swir.
  • Incorporate image upload and reshaping.
  • Test file size limitations and set the upload limits so that Open Specy doesn't break.
  • Incorporate image preprocessing.
  • Incorporate the model classification.
  • Incorporate the processed image visualization and reporting of particle sizes, shapes, and polymer types for the images.
  • Develop new functions to implement in the CRAN package.
@wincowgerDEV wincowgerDEV added enhancement New feature or request Shiny app Relates to the OpenSpecy Shiny app/GUI implementation R package Relates to the OpenSpecy R package and associated functions labels Nov 3, 2021
@Shreyas-Patankar
Copy link

very cool! @afalty we've had some success with PCA for dimensional reduction of hyperspectral images (repo Ocean-Wise/hyperspectral_tile_processing) but we don't have our own reference database - relying on OpenSpecy instead :D

our version of PCA does have limitations though (dealing with overlaps etc.) so would love to share notes!

@afalty
Copy link

afalty commented Nov 4, 2021

Hey Shreyas, would love to hear about what you're working with. Feel free to drop me an email :) [email protected]

@Shreyas-Patankar
Copy link

@afalty just sent you a note! also I'll be talking about this at the SETAC conference this month if you happen to be participating

@wincowgerDEV
Copy link
Owner Author

Interestingly just found this new R package to analyze maps that we might be able to build off of: https://www.researchgate.net/publication/355955630_uFTIR_An_R_package_to_process_hyperspectral_images_of_environmental_samples_captured_with_m_FTIR_microscopes

@zsteinmetz
Copy link
Collaborator

Great! Let me know if I can help.

@afalty
Copy link

afalty commented Nov 8, 2021

Also just a quick correction, I unfortunately don't have nearly that much data for each polymer... I have varying numbers for each polymer type. I can say that the database I've accumulated is made up of 4770 spectra. This is more or less "ready" and I can send it along as a .csv or another format if you like. Only question is if you'd like it unprocessed or pre-processed. The way I see it the bare minimum would be correction for the light source.

@wincowgerDEV
Copy link
Owner Author

wincowgerDEV commented Nov 8, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request R package Relates to the OpenSpecy R package and associated functions Shiny app Relates to the OpenSpecy Shiny app/GUI implementation
Projects
None yet
Development

No branches or pull requests

4 participants