Skip to content

983632847/HiCo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HiCo: Hierarchical Contrastive Learning for Ultrasound Video Model Pretraining

Abstract

The self-supervised ultrasound (US) video model pretraining can use a small amount of labeled data to achieve one of the most promising results on US diagnosis. However, it does not take full advantage of multi-level knowledge for learning deep neural networks (DNNs), and thus is difficult to learn transferable feature representations. This work proposes a hierarchical contrastive learning (HiCo) method to improve the transferability for the US video model pretraining. HiCo introduces both peer-level semantic alignment and cross-level semantic alignment to facilitate the interaction between different semantic levels, which can effectively accelerate the convergence speed, leading to better generalization and adaptation of the learned model. Additionally, a softened objective function is implemented by smoothing the hard labels, which can alleviate the negative effect caused by local similarities of images between different classes. Experiments with HiCo on five datasets demonstrate its favorable results over state-of-the-art approaches.

image

Quick Start

Fine-tune with Pretrained Model

  1. Pick a model and its config file, for example, config.yaml
  2. Download the model HiCo
  3. Download the 5 fold cross validation POCUS dataset
  4. Run the demo with
python eval_pretrained_model.py

Train Your Own Model

  1. Download the Butterfly (Baidu pan Pwd:butt, Google drive) dataset
  2. Train the HiCo model with
python run.py

Environment

The code is developed with a single Nvidia RTX 3090 GPU.

The install script has been tested on an Ubuntu 18.04 system.

☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️☁️

License

Licensed under a GPL-3.0 license.

Citation

If you find the code useful in your research, please consider citing:

@inproceedings{Zhang2022ACCV,
    title={HiCo: Hierarchical Contrastive Learning for Ultrasound Video Model Pretraining},
    author = {Chunhui Zhang, and Yixiong Chen, and Li Liu, and Qiong Liu, and Xi Zhou},
    journal = {ACCV},
    year = {2022}
  }
  
  
 @inproceedings{Chen2021MICCAI,
    title={USCL: Pretraining Deep Ultrasound Image Diagnosis Model through Video Contrastive Representation Learning},
    author = {Yixiong Chen, and Chunhui Zhang, and Li Liu, and Cheng Feng, and Changfeng Dong, and Yongfang Luo, and Xiang Wan},
    journal = {MICCAI},
    year = {2021}
  }

Contact

Feedbacks and comments are welcome! Feel free to contact us via andyzhangchunhui@gmail.com or 16307110231@fudan.edu.cn or liuli@cuhk.edu.cn.

Enjoy!

Our code is largely borrowed from USCL

About

This repository includes the code for HiCo (PyTorch version).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages