How do two tiny transformers match large networks on lung-sound classification?

A new preprint describes two convolutional transformers that classify respiratory diseases from short audio clips. The models are small enough to fit on a microcontroller yet reach accuracy levels that rival heavy pretrained networks.

The models that fit in a few hundred kilobytes

RespCCT holds 173,187 parameters. FreqCCT holds 124,999. Both learn from random initialization. No ImageNet weights are transferred.

The input pipeline turns each five‑second recording into three images: a mel spectrogram, a constant‑Q transform, and a cepstral representation. Three public datasets — ICBHI, KAUH, RD@TR — supply 1,665 files across seven disease classes. The paper compares both models against five ImageNet‑pretrained networks and larger distilled variants on one test set using paired bootstrap intervals. It also measures the cost of every pipeline stage on a single CPU thread, tests whether attribution maps depend on the trained weights, and probes whether the learned features reveal the recording source. The manuscript spans 22 pages and is slated for submission to Biomedical Signal Processing and Control.

What the test numbers actually say

On a single test fold RespCCT scores 98.13 % accuracy and a macro F1 of 0.970. FreqCCT scores 97.58 % and 0.951.

Across five folds RespCCT averaged over three random seeds reaches 97.65 % accuracy and 0.959 macro F1. FreqCCT with one seed reaches 96.95 % and 0.941. The two strongest pretrained baselines reach 0.984 macro F1. RespCCT needs 2.0 to 64.6 times less weight storage than those baselines.

Where the time goes and what the features reveal

Computing the three input images takes longer than running either model on a single CPU thread.

A linear probe trained on the learned representations identifies the source database with 0.958 accuracy. Attribution maps were checked for dependence on the trained weights. The manuscript does not report clinical outcomes or injury data.

The sources this article was written from

  • "arXiv:2611.24323v1
    https://arxiv.org/abs/2611.24323v1"

Read next