← Latest papers
💻 computer science

Automated Wheezing Segmentation with Task-Specific Weighted Loss

The paper proposes W-FAST, a deep learning architecture utilizing a task-specific weighted loss to address severe class imbalance, achieving precise temporal segmentation of wheezing events in clinical respiratory sounds with high performance on both ICBHI and SNUBH datasets.

Original authors: Daehwan Hwang, Wonwoo Shin, Hyunwoo Kim, June-woo Kim, Kyunghoon Kim

Published 2026-11-16
📖 4 min read☕ Coffee break read

Original authors: Daehwan Hwang, Wonwoo Shin, Hyunwoo Kim, June-woo Kim, Kyunghoon Kim

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Listening to a patient's breath has long been a cornerstone of medical diagnosis, a non-invasive way for doctors to detect hidden troubles within the lungs. For centuries, this practice relied entirely on the human ear and the clinician's experience, a method that, while valuable, is limited by the listener's own fatigue, hearing ability, and subjective interpretation. In recent years, the medical community has turned to artificial intelligence to create a more consistent and objective listener. These computer systems can analyze audio recordings of breathing sounds, identifying patterns that signal conditions like asthma or chronic lung disease. However, a significant hurdle remains: most current systems are trained to judge an entire breath cycle as either "normal" or "abnormal." This broad approach often fails to pinpoint exactly when a problematic sound begins and ends, causing the technology to mistake background noise or normal breathing for a serious medical event.

To solve this problem, a team of researchers from Seoul National University Bundang Hospital and Wonkwang University has developed a new system called W-FAST, designed to act like a precise scalpel rather than a blunt instrument. Instead of labeling a whole minute of breathing as sick or healthy, this system learns to identify the exact split-second moments when a wheezing sound occurs. The researchers focused on the specific challenge of data imbalance, a situation where healthy breathing sounds are vastly more common than the rare, short bursts of wheezing. In their clinical data, for every single block of wheezing sound, there were roughly fifty-five blocks of normal sound. This extreme difference makes it difficult for computers to learn without either missing the wheezing entirely or falsely flagging normal breaths as dangerous. The team introduced a specialized mathematical strategy that adjusts how the computer learns from these uneven examples, teaching it to value the rare wheezing sounds correctly without becoming overly sensitive to harmless noise.

The researchers tested their system on two different sets of data: a widely used public benchmark containing recordings from patients in Portugal and Greece, and a new, carefully curated set of recordings from pediatric patients in South Korea. In the South Korean dataset, the team ensured the highest level of accuracy by having two independent pediatric specialists listen to every sound and agree on the diagnosis before it was used for training. They divided these recordings into tiny, 0.32-second segments to train the model to recognize the precise start and stop of a wheeze. The results showed that the new system significantly outperformed previous methods. On the public benchmark, the system achieved a high score that placed it among the top performers, but the improvement was even more striking on the real-world hospital data, where the system reached a score of nearly 0.95. This high performance indicates that the model successfully learned to distinguish the specific acoustic signature of a wheeze from the vast amount of normal breathing and background noise.

A critical part of this success was the team's refusal to accept the standard way of training these models. Previous studies often relied on simple methods to balance the data or used loss functions that treated all errors equally. The researchers found that these standard approaches led the computer to either ignore the rare wheezing sounds or to predict that every sound was a wheeze just to minimize its errors. By introducing a specific weighting factor, the system was able to learn the correct balance, prioritizing the detection of actual wheezing while ignoring the overwhelming number of normal breaths. To further refine this, the team employed a dynamic sampling technique, ensuring that during every round of training, the computer was exposed to a diverse mix of normal breathing examples rather than just the same few. This prevented the system from memorizing specific noise patterns and helped it generalize better to new, unseen patients.

To verify that the system was actually listening to the right things, the researchers used a visualization tool that highlights which parts of the sound the computer is focusing on. In earlier models, these visualizations often showed the computer reacting to random noise or entire sections of normal breathing. In contrast, the new system consistently focused its attention on the specific frequency ranges and time intervals where wheezing actually occurs, matching what medical experts know about the sound of a constricted airway. The study suggests that this approach provides a robust framework for future medical tools, offering a way to monitor patients continuously and accurately without the fatigue or subjectivity of human listening. While the current work is limited to pediatric data and specific types of microphones, the findings demonstrate that precise, automated segmentation of respiratory sounds is not only possible but highly effective when the training process is tailored to the unique challenges of medical data.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →