Skip to content
/ GIRAFE Public

Glottal Imaging Repository for Advanced Segmentation, Analysis, and Fast Evaluation

Notifications You must be signed in to change notification settings

BYO-UPM/GIRAFE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GIRAFE

Glottal Imaging Repository for Advanced Segmentation, Analysis, and Fast Evaluation

GIRAFE

Welcome to the GIRAFE Database repository! This comprehensive collection of code will guide you in using the dataset, setting up the foundation for managing results, and training deep learning models. The GIRAFE dataset includes 65 high-speed videoendoscopic recordings from a cohort of 50 patients (30 female, 20 male). It comprises 15 recordings from healthy controls, 26 from patients with diagnosed voice disorders, and 24 from individuals with unknown health conditions. All recordings were manually annotated by an expert, including masks for the semantic segmentation of the glottal gap. The repository also provides automatic segmentation of the glottal area using various state-of-the-art approaches.

Repository Structure

  1. DL_code folder: contains the framework for using the dataset to train deep learning models (train.py) and to perform inference (inference.py). Two deep learning models were used: Unet and SwinV2, both implemented using the MONAI and TIMM Python packages.

  2. Matlab_code folder: contains the .mat files needed to generate the facilitative playbacks and trajectory plots. Users can input their custom segmentation results in AVI format and run the script Main_segmentation.m to generate the playbacks.

  3. Matlab_code.ipynb: notebook explains how to use the MATLAB code results and visualize the different playbacks.

  4. Seg_FP-Results.ipynb: notebook guides users in visualizing the results from the automatic segmentation methods included in the GIRAFE dataset.

Quick Start

The GIRAFE Database is available on Zenodo with a Digital Object Identifier (DOI) to ensure easy access and citation. To access the database, follow these steps:

Visit the Zenodo page for the GIRAFE Database using the following link: https://zenodo.org/records/13773163

You can download the dataset files directly from Zenodo.

For more information and specific setup instructions, refer to the dataset documentation on Zenodo.

Installation

To set up the project using Conda, follow these steps:

# Clone the repository
https://github.com/Andrade-Miranda/GIRAFE.git
cd GIRAFE

# Create a Conda environment from the .yml file
conda env create -f GIRAFE.yml

# Activate the Conda environment
conda activate your-env-name

Usage

Each script can be run independently, depending on the specific analysis you wish to perform. Here are the general steps to follow:

  1. Prepare Your Data: Ensure the GIRAFE database is available either inside the GIRAFE repository or in any other location.

  2. Configure Hyperparameters: Adjust models hyperparameters inside spripts.

  3. Run the Script: Execute the script using a Python interpreter. For example:

    python DL_code/train.py 
    python DL_code/inference.py --model_dir Unet_8_100_0.0002_256_Baseline

training.py and inference.py scripts have the data_dir path set to the default value ../GIRAFE, but you can change it using the argument --data_dir . After training, training.py generates a ./DL_code/Results directory where the models are saved. The inference.py requires the innermost directory name containing the model to be passed as an argument using --model_dir.

How to Cite

If you use the GIRAFE Database in your research or projects, we kindly request that you cite it to give credit to the contributors. Please use the following references to cite the database:
  1. Zenodo Dataset:
    To cite the dataset available on Zenodo, use the provided DOI:

    Andrade-Miranda, G., Arias-Londoño, J. D., & Godino Llorente, J. I. (2024). GIRAFE: Glottal Imaging Repository for Advanced Segmentation, Analysis, and Facilitative Playbacks Evaluation

  2. ArXiV Paper:
    Additionally, cite the associated ArXiV paper where the database is described in detail:

@misc{andrademiranda2024GIRAFE,
      title={GIRAFE: Glottal Imaging Dataset for Advanced Segmentation, Analysis, and Facilitative Playbacks Evaluation}, 
      author={G. Andrade-Miranda and K. Chatzipapas and J. D. Arias-Londoño and J. I. Godino-Llorente},
      year={2024},
      eprint={2412.15054},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2412.15054}, 
}

License

MIT LICENSE

Credits

We'd like to acknowledge and express our gratitude to everyone who has contributed to this project. Your efforts and support are highly appreciated.

Contact Information

If you have questions or need further assistance, please feel free to reach out to us:

Email: andradema@univ-brest.fr, ignacio.godino@upm.es, julian.arias@upm.es

GitHub Issues: Report an Issue

Thank you for using the GIRAFE Database! We hope you find it valuable for your research and projects.

About

Glottal Imaging Repository for Advanced Segmentation, Analysis, and Fast Evaluation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors