Downloads · 30 days
0
evelyn0414/OPERA
OPERA is a machine learning model from evelyn0414. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-nc-4.0.
<div align="center" <a href="https://github.com/evelyn0414/OPERA" <img width="200px" height="200px" src="https://github.com/evelyn0414/OPERA/assets/61721952/6d17e3e7-5b3f-4e0b-991a-1cc02c5434dc"</a </div
Downloads · 30 days
0
Access
Public
Updated Nov 15, 2024
Repo size
828 MB
Likes
2
Public
Click a slice to open those files.
.ckpt828 MB · 100%
From the Hugging Face model README
OPERA is an OPEn Respiratory Acoustic foundation model pretraining and benchmarking system. We curate large-scale respiratory audio datasets (136K samples, 440 hours), pretrain three pioneering foundation models, and build a benchmark consisting of 19 downstream respiratory health tasks for evaluation. Our pretrained models demonstrate superior performance (against existing acoustic models pretrained with general audio on 16 out of 19 tasks) and generalizability (to unseen datasets and new respiratory audio modalities). This highlights the great promise of respiratory acoustic foundation models and encourages more studies using OPERA as an open resource to accelerate research on respiratory audio for health.
The code is available at: https://github.com/evelyn0414/OPERA
Example for extracting feature using your own data:
from src.benchmark.model_util import extract_opera_feature
# array of filenames
sound_dir_loc = np.load(feature_dir + "sound_dir_loc.npy")
opera_features = extract_opera_feature(sound_dir_loc, pretrain="operaCT", input_sec=8, dim=768)
np.save(feature_dir + "operaCT_feature.npy", np.array(opera_features))
Kindly cite our work if you find it useful.
@misc{zhang2024openrespiratoryacousticfoundation,
title={Towards Open Respiratory Acoustic Foundation Models: Pretraining and Benchmarking},
author={Yuwei Zhang and Tong Xia and Jing Han and Yu Wu and Georgios Rizos and Yang Liu and Mohammed Mosuily and Jagmohan Chauhan and Cecilia Mascolo},
year={2024},
eprint={2406.16148},
archivePrefix={arXiv},
primaryClass={cs.SD},
url={https://arxiv.org/abs/2406.16148},
}