Skip to content

A contrastive learning algorithm that encodes pixel information into enriched patch-level embeddings

License

AGPL-3.0, MIT licenses found

Licenses found

AGPL-3.0
LICENSE
MIT
LICENSE.txt
Notifications You must be signed in to change notification settings

djimenezsanchez/PatchContrastiveLearning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Patch contrastive learning (PCL)

This implementation exhaustively finds biology differences within the image dataset using a self-supervised contrastive learning paradigm. When PCL is trained, the dataset is divided into image patches which are encoded into enriched patch embeddings. Image patch embeddings consists of n-dimensional vectors whose euclidean distances are lowest when referring to similar biology structures and the highest when they contain different biology structures.

Applications: They are especially useful when data is scarce and can be utilized in custom-made machine learning pipelines with very different objectives:

  • Discovery of new biological structures
  • Measurement of biological structures across subject-types (e.g., treated vs. control)
  • Patient outcome prediction
  • Subject regression analysis
  • etc.

For more information about this tool please refer to this Paper.

Authors: Daniel Jiménez-Sánchez, Mikel Ariz, Hang Chang, Xavier Matias-Guiu, Carlos E. de Andrea, Carlos Ortiz-de-Solórzano.

Patch contrastive learning
An illustration of Patch Contrastive Learning.

Data download

To replicate the paper's experiments on a endometrial cancer 7-marker image dataset, first download the images following the link (download Example_POLE.zip).

When downloaded, add the images to the folder 'Examples/Example_POLE/'.

Usage

Run main.py

About

A contrastive learning algorithm that encodes pixel information into enriched patch-level embeddings

Topics

Resources

License

AGPL-3.0, MIT licenses found

Licenses found

AGPL-3.0
LICENSE
MIT
LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages