Papers › Patch-Mix Contrastive Learning with Audio Spectrogram Transformer on Respiratory Sound...

Patch-Mix Contrastive Learning with Audio Spectrogram Transformer on Respiratory Sound Classification

23 May 2023arXiv:2305.14032archive 2025-07-28

Sangmin Bae, June-Woo Kim, Won-Yang Cho, Hyerim Baek, Soyoun Son, Byungjo Lee, Changwan Ha, Kyongpil Tae, Sungnyun Kim, Se-Young Yun

Respiratory sound contains crucial information for the early diagnosis of fatal lung diseases. Since the COVID-19 pandemic, there has been a growing interest in contact-free medical care based on electronic stethoscopes. To this end, cutting-edge deep learning models have been developed to diagnose lung diseases; however, it is still challenging due to the scarcity of medical data. In this study, we demonstrate that the pretrained model on large-scale visual and audio datasets can be generalized to the respiratory sound classification task. In addition, we introduce a straightforward Patch-Mix augmentation, which randomly mixes patches between different samples, with Audio Spectrogram Transformer (AST). We further propose a novel and effective Patch-Mix Contrastive Learning to distinguish the mixed representations in the latent space. Our method achieves state-of-the-art performance on the ICBHI dataset, outperforming the prior leading score by an improvement of 4.08%.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2305.14032")

Code

Syntology Ran 1 of 6 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · honoured contract.

By repository: official repository: 6 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

raymin0223/patch-mix_contrastive_learning officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

6 samples harvested; 1 ran; 1 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
5unverified

Licence: 0 of the 6 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from raymin0223/patch-mix_contrastive_learning. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

get_sinusoid_encoding raymin0223/patch-mix_contrastive_learning/models/ssast.py official repository ran · honoured contract fingerprinted MIT (permissive) · ced6bc2bfdfe0059 · report
accuracy raymin0223/patch-mix_contrastive_learning/util/misc.py official repository unverified MIT (permissive) · fe87a89277ba647b · report
get_annotations raymin0223/patch-mix_contrastive_learning/util/icbhi_util.py official repository unverified MIT (permissive) · 61e09e6d13e83b66 · report
get_mean_and_std raymin0223/patch-mix_contrastive_learning/util/icbhi_util.py official repository unverified MIT (permissive) · d1752516e4658ffa · report
set_optimizer raymin0223/patch-mix_contrastive_learning/util/misc.py official repository unverified MIT (permissive) · f100d1606a7ecc2f · report
update_moving_average raymin0223/patch-mix_contrastive_learning/util/misc.py official repository unverified MIT (permissive) · 74c1be055e426e23 · report

Tasks

Audio ClassificationContrastive LearningSound Classification

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Audio Classification ICBHI Respiratory Sound Database AST (Patch-Mix CL) ICBHI Score 62.37 #9 of 25 Archive leaderboard report
Audio Classification ICBHI Respiratory Sound Database AST (Patch-Mix CL) Sensitivity 43.07 #9 of 25 Archive leaderboard report
Audio Classification ICBHI Respiratory Sound Database AST (Patch-Mix CL) Specificity 81.66 #9 of 25 Archive leaderboard report
Audio Classification ICBHI Respiratory Sound Database AST (fine-tuning) ICBHI Score 59.55 #13 of 25 Archive leaderboard report
Audio Classification ICBHI Respiratory Sound Database AST (fine-tuning) Sensitivity 41.97 #24 of 25 Archive leaderboard report
Audio Classification ICBHI Respiratory Sound Database AST (fine-tuning) Specificity 77.14 #24 of 25 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Absolute Position EncodingsAdamAttentionBPEContrastive LearningDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections