AriSaliliJames
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Diatom Shapes Project ## **Meeting Notes** ### To-Do: 1. Fix annotation issue (ASJ). 1. Newer dataset with diff ratio (so more testing). (ASJ). 1. Re-run original with eucyonema and others. (SK) 1. Run cNN on new data (SK). 1. Future: get more data. 1. Create new model for binary classification gom vs non-gom --- **Meeting Date**: 25/01/2024 **Location**: PhD Offices, UCL **Immediate To Do:** - Get dataset of tip outlines (ASJ). - Run Karcher means / tPCA and geodesic distances on tip outlines (SK). - Create CNN json for multiclass classifcation (ASJ) - Create CNN json for Gomphonema CNN (ASJ) - Send detectron notebook to SK (ASJ) - Multiclass CNN (filtered species) (SK) - Gomphonema CNN (SK) - Send cropped images to SK (ASJ) - ~~Create metadata CSV with additional information with columns such as Lake, Year, Specie, Environmental info (acidity)(SK)~~. **Minor To Do:** - ~~Install Github desktop (SK)~~ - ~~Push code (exc. KNN .py file) to Github (SK)~~ - ~~Push KNN code to Github (ASJ)~~ - Send SK detectron colab notebook (ASJ) **Other / In Future:** - Include size (or width) as a parameter to ML code. - Merge CNN w. morphological analysis on curves. - Cluster within Gomphonema species. - Try other clustering method. - ~~Plot tPCA with other groups highlighted (e.g., Lake, Year etc)~~. - CNN on videos from microscope. - Frame cropping from microscope videos. - https://github.com/facebookresearch/detectron2 --- **Meeting Date**: 13/12/2023 **Location**: Informatics, NHM **Big Picture**: - CNN to automatically segment and classify diatoms from images. - Use CNN to create dataset of diatoms per image. - From images, get outlines of diatoms. (Hopefully using basic contour extraction). - Shape analysis on diatoms for GM, per site. - New pipeline for analysing shapes of diatoms, automatically, from images. **Next Steps**: - Fix bug in KNN code. (ASJ) - Send over CNN code. (ASJ) - ~~Plot Karcher Means. (SK)~~ - Publish repository on Github. (ASJ) - ~~Get Github. (SK)~~ - Plot tPCA results (e.g., PC1 vs PC2 for all spcies on one graph, 3D plots etc.). (SK) --- ## Other Notes **Things to Check/Ask**: - Were curves closed? - How many points per curve - should we increase? - Is it worth smoothing the curves? - How to define "tips". - K-means clustering on curves. - Cropping images to have more images. Then splitting into training/testing/val -- possible to have multiple curves per cropped image. - Creating a dataset of pairwise distances and diatom area (or some other variable?) - Genus level classification --- - worth symmetrizing diatoms on the longer axis (apycal axes). (e.g.like Greek vases) - test basic smoothing - width (along x axis) - add this variable to the geodesic distances. - ASJ will send kiwi notebooks to combine distance matrices. - Try classification on genus level. - Kmeans https://uc-r.github.io/kmeans_clustering - Create those 2 datasets 1. - ~~SK will send over updated meta CSV (with species).~~ 1. - ASJ will create a notebook to do basic smooting and symmetrization. 1. - ASJ will create a dataset of smoothed, symmetrized diatoms. 1. - ASJ will create a dataset of half-diatoms. 1. - SK will run previous classification algorithms and tPCA / KMs on the two new datasets. 1. - SK will test out K-means clustering on the original for now (and then on the other two datasets). 1. - ~~SK will draw bounding boxes on original images and then send that to ASJ~~. 1. - ASJ will create dataset of cropped images based on SK's bouding boxes. 1. - ASJ, SK will run CNN (detectron) algorithm on cropped images. 1. - ~~SK will gather general width data for diatoms.~~ 1. - ASJ will compute widest width (in x axis). 1. - ASJ will send SK notebook to combine geodesic distance matrix with width distance matrix for classification. 1. - ~~SK will re-run classification on genus-level.~~ --- Potential Things for SK to Try: 1. Kmeans https://scikit-learn.org/stable/modules/generated/sklearn.cluster.KMeans.html 2. Random Forest https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestClassifier.html Useful Links: 1. Colab - https://colab.research.google.com/ 2. Kloster's paper - https://pubmed.ncbi.nlm.nih.gov/36827378/ 3. Sherpa Link: https://www.uni-due.de/phycology/sherpa To-Do: 1. ~~Create fake diatom images for CNN. (ASJ)~~ 2. Run CNN on fake diatoms. (SK - but ASJ will send code) 3. Get outlines from CNN (e.g. Segment Anything) (ASJ) 4. Run KNN on CNN outlines. 5. ~~Symmetrize using Karcher mean way (ASJ)~~ 6. Run KNN on Symmetrized curves (SK). 7. Run template shortest match method on original (SK). 8. Run template shortest match method on symmetrized (SK). 9. Find measurements of diatoms from images. (ASJ will think) # Code ``` paths_to_means = 'folder_paths' all_means = {} for file in os.listdir(path_to_means): df = pd.read_csv(path_to_means+'/'+file) all_means{file} = [list(df['X']),list(df['Y'])] ``` ``` closest_matches = {} for i in tqdm.tqdm(range(n)): x1 = list(df[df['Filename']==names[i]]['X']) y1 = list(df[df['Filename']==names[i]]['Y']) d_min = 100000 closest_match = '' for kmeans in list(all_means.values()): kmx = all_means[kmeans][0] kmy = all_means[kmeans][1] d,_,_,_ = geodDistance(x1,y1,kmx,kmy,k=7) if d < d_min: d_min = deepcopy(d) closest_match = deepcopy(kmeans) closest_matches[i] = closest_match ```

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully