[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-455372-105":59,"doc-detail-455372-en":131,"doc-similar-455372":164},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","evaluating-few-shot-prompting-for-spectrogram-based-lung-sound-classification-using-a-multimodal-language-model","Evaluating few-shot prompting for spectrogram-based lung sound classification using a multimodal language model","","Traditional deep learning for lung sound analysis relies on large labeled datasets, while multimodal large language models can offer prompt-based flexibility. This study evaluates GPT-4o for spectrogram-based classification and tests whether few-shot prompting improves results versus zero-shot prompting. Using 6898 labeled respiratory cycles from ICBHI 2017, GPT-4o classifies mel-spectrograms under both strategies and is assessed with accuracy, precision, recall, and F1-score.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/evaluating-few-shot-prompting-for-spectrogram-based-lung-sound-classification-using-a-multimodal-language-model/455372/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/evaluating-few-shot-prompting-for-spectrogram-based-lung-sound-classification-using-a-multimodal-language-model/455372.png","ImageObject",300,407,{"name":92,"@type":93},"CatatanPagi","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-30","2026-09-30",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",18,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What problem does the study address in lung sound classification?","Question",{"text":113,"@type":114},"Traditional deep learning requires large labeled datasets, and the study explores whether a multimodal large language model can use prompts to classify lung sounds from spectrograms.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"How did the researchers prepare the input data for GPT-4o?",{"text":118,"@type":114},"They converted 6898 annotated respiratory cycles from the ICBHI 2017 Respiratory Sound Database into mel-spectrograms.",{"name":120,"@type":111,"acceptedAnswer":121},"What effect did few-shot prompting have compared with zero-shot prompting?",{"text":122,"@type":114},"Few-shot prompting increased overall accuracy (0.363 vs 0.320) and produced modest gains in precision, recall, and F1-score across labels.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},455372,1790964861,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":140,"language":141,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":67,"update_tm":145,"read_time":146,"preview_page_count":19,"preview_urls":147},962090894170,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","OPEN ACCESS  \nCitation: Dietrich N, McShannon D, Rzepka MF (2026) Evaluating few-shot prompting for spectrogram-based lung sound classification using a multimodal language model. PLOS Digit Health 5(1): e0001179. [https://doi.org/10.1371/](https://doi.org/10.1371/)[ ](https://doi.org/10.1371/)[journal.pdig.0001179](journal.pdig.0001179)  \nEditor: Dhiya Al-Jumeily OBE, Liverpool John Moores University-City Campus: Liverpool John Moores University, UNITED KINGDOM OF GREAT BRITAIN AND NORTHERN IRELAND  \nReceived: July 31, 2025  \nAccepted: December 17, 2025  \nPublished: January 7, 2026  \nCopyright: © 2026 Dietrich et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.  \nData availability statement: The code used for spectrogram generation and model inference, along with the specific prompt text and associated processing parameters, is available from [rdm@utoronto.ca](rdm@utoronto.ca) upon reasonable request.  \nRESEARCH ARTICLE  \nEvaluating few-shot prompting for spectrogram-based lung sound classification using a multimodal language model  \nNicholas Dietrich1*, David McShannon2, Mark F. Rzepka3  \n1 Temerty Faculty of Medicine, University of Toronto, 1 King’s College Cir, Toronto, Ontario, Canada, 2 Faculty of Engineering, McMaster University, Hamilton, Ontario, Canada, 3 Translational Medicine, Hospital for Sick Children Research Institute, Toronto, Ontario, Canada  \n* [nicholas.dietrich@mail.utoronto.ca](nicholas.dietrich@mail.utoronto.ca)  \nAbstract  \nTraditional deep learning models for lung sound analysis require large, labeled datasets, whereas multimodal large language models (LLMs) may offer a flexible, prompt-based alternative. This study aimed to evaluate the utility of a general-purpose multimodal LLM, GPT-4o, for lung sound classification from  \nmel-spectrograms and assess whether a few-shot prompt approach improves performance over zero-shot prompting. Using the ICBHI 2017 Respiratory Sound Database, 6898 annotated respiratory cycles were converted into mel-spectrograms. GPT-4o was prompted to classify each spectrogram using both zero-shot and fewshot strategies. Model outputs were evaluated against ground truth labels using performance metrics including accuracy, precision, recall, and F1-score. Few-shot prompting improved overall accuracy (0 .363 vs. 0.320) and yielded modest gainsin precision (0 .316 vs. 0.283), recall (0 .300 vs. 0.287), and F1-score (0 .308 vs.  \n0.285) across labels. McNemar’s test indicated a statistically significant difference in performance between prompting strategies (p \u003C 0.001) . Model repeatability analysis demonstrated high agreement (κ = 0.76–0.88; agreement: 89–96%), indicating excellent consistency. GPT-4o demonstrated limited but statistically significant performance gains using few-shot prompting for lung sound classification. While current performance remains insufficient for clinical deployment, this prompt-based approach provides a baseline for spectrogram-based multimodal tasks and a foundation for future exploration of prompt-based multimodal inference.  \nAuthor summary  \nLung sounds, such as wheezes and crackles, can offer important clues about respiratory health. Traditionally, doctors use a stethoscope to listen for these sounds, but interpreting them accurately can be difficult and often requires  \nPLOS Digital Health | [https://doi.org/10.1371/journal.pdig.0001179](https://doi.org/10.1371/journal.pdig.0001179) January 7, 2026 1 / 13  \nThe dataset used in this study is available from the ICBHI 2017 Database: Rocha, B. M. , Filos, D. , Mendes, L. , Serbes, G. , Ulukaya, S. , Kahya, Y. P. , Jakovljevic, N. , Turukalo, T. L. , Vogiatzis, I. M. , Perantoni, E. , Kaimakamis, E. , Natsiavas, P. , Oliveira, A. , Jácome, C. , Marques, A. , Maglaveras, N. , Pedro Paiva, R. , Chouvarda, I. , & de Ca","cbCaiq22ogoMcchH","https://ap.wps.com/l/cbCaiq22ogoMcchH","pdf",1243706,13,"English","# Abstract\n# Introduction\n## Lung sounds and auscultation\n## Electronic capture and analysis","[{\"question\":\"What problem does the study address in lung sound classification?\",\"answer\":\"Traditional deep learning requires large labeled datasets, and the study explores whether a multimodal large language model can use prompts to classify lung sounds from spectrograms.\"},{\"question\":\"How did the researchers prepare the input data for GPT-4o?\",\"answer\":\"They converted 6898 annotated respiratory cycles from the ICBHI 2017 Respiratory Sound Database into mel-spectrograms.\"},{\"question\":\"What effect did few-shot prompting have compared with zero-shot prompting?\",\"answer\":\"Few-shot prompting increased overall accuracy (0.363 vs 0.320) and produced modest gains in precision, recall, and F1-score across labels.\"}]","Evaluating few-shot prompting for spectrogram-based lung sound classification using a multimodal language model | PDF",1790742715,33,[148,152,156,160],{"page_no":8,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/55ac521b860fe3f475fb521b857cb04b.webp",983,1272,{"page_no":14,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/4a4ea60f10550ed7beda5845a4649431.webp",982,1270,{"page_no":81,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/5dc113a7316feac8d2364f41c7a67247.webp",981,1269,{"page_no":19,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/f23f632aec7bebd1de285b19a977d6ab.webp",980,1268,{"list":165,"token":66},[166,173,180,187,193,199,205,211,218,224],{"doc_id":167,"doc_title":168,"file_type":138,"home_preview_img_url":169,"slug":170,"view_count":171,"category_name":40,"create_tm":172},83443,"Decompose, Compare, and Decide: Multimodal LLMs are Implicit Few-Shot Learners","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808977819/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109959&Signature=Dt1mmVRni7gkGZ9k6qO0Zofkosk%3D","decompose-compare-and-decide-multimodal-llms-are-implicit-few-shot-learners",35,1784187793,{"doc_id":174,"doc_title":175,"file_type":138,"home_preview_img_url":176,"slug":177,"view_count":178,"category_name":40,"create_tm":179},32318,"A RAG-Based Question-Answering Solution for Cyber-Attack Investigation and Attribution","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229764697454/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109959&Signature=y4iTUSEmieGQUXvr1nqIsiIXcYw%3D","a-rag-based-question-answering-solution-for-cyber-attack-investigation-and-attribution",49,1781126468,{"doc_id":181,"doc_title":182,"file_type":138,"home_preview_img_url":183,"slug":184,"view_count":185,"category_name":40,"create_tm":186},651292,"From Pixels to Urban Policy-Intelligence: Recovering Legacy Effects of Redlining with a Multimodal LLM","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229973492862/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109959&Signature=60gDVi5Go4b4WWG8rB%2BxlX2pSY0%3D","from-pixels-to-urban-policy-intelligence-recovering-legacy-effects-of-redlining-with-a-multimodal-llm",12,1792873261,{"doc_id":188,"doc_title":189,"file_type":138,"home_preview_img_url":190,"slug":191,"view_count":29,"category_name":40,"create_tm":192},656615,"Using Large Multimodal Models (LMM) to Digitalize Scanned HVAC Schematics into Metadata Schemas for Buildings","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975318769/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109959&Signature=KFPs9hTOmvIkQl5%2FgoXgaLvEHTg%3D","using-large-multimodal-models-lmm-to-digitalize-scanned-hvac-schematics-into-metadata-schemas-for-buildings",1792969651,{"doc_id":194,"doc_title":195,"file_type":138,"home_preview_img_url":196,"slug":197,"view_count":185,"category_name":40,"create_tm":198},429120,"AN EXPLORATORY SEMANTIC ANALYSIS OF AGE-RELATED STEREOTYPES IN OPENAI’S GPT 4O MODEL","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229922828362/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109959&Signature=Ll7jzvA9VrhWbTOx08buNqH3uHA%3D","an-exploratory-semantic-analysis-of-age-related-stereotypes-in-openais-gpt-4o-model",1790648705,{"doc_id":200,"doc_title":201,"file_type":138,"home_preview_img_url":202,"slug":203,"view_count":52,"category_name":40,"create_tm":204},663912,"Fine-Tuning Vision-Language Model for Automated Engineering Drawing - Information Extraction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229981749258/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109959&Signature=IARa%2Feu%2FM0ns7TSZRYghE%2FxG040%3D","fine-tuning-vision-language-model-for-automated-engineering-drawing-information-extraction",1793234078,{"doc_id":206,"doc_title":207,"file_type":138,"home_preview_img_url":208,"slug":209,"view_count":8,"category_name":40,"create_tm":210},759608,"Profiling Cryptocurrency Influencers with Sentence Transformers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044469748/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109959&Signature=bzW%2Bn7AfylwMlRwBlALfm%2B1YV3g%3D","profiling-cryptocurrency-influencers-with-sentence-transformers",1795890364,{"doc_id":212,"doc_title":213,"file_type":138,"home_preview_img_url":214,"slug":215,"view_count":216,"category_name":40,"create_tm":217},291106,"Comparison of Deep Learning and Machine Learning in Music Genre Categorization - MSc Research Project - Data Analytics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229903077694/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109959&Signature=w2XDS8o8Np%2Bz5mHAnNWVO%2BYFKzw%3D","comparison-of-deep-learning-and-machine-learning-in-music-genre-categorization-msc-research-project-data-analytics",14,1789643469,{"doc_id":219,"doc_title":220,"file_type":138,"home_preview_img_url":221,"slug":222,"view_count":52,"category_name":40,"create_tm":223},579033,"Automating Self-Affirmation Essay Coding - Fine-Tuned BERT Performance Comparable to Human Coders and Comparison with GPT-4","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229953234501/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109959&Signature=GFREnkvtQ4xOaXNkOh2e%2FM4g7V8%3D","automating-self-affirmation-essay-coding-fine-tuned-bert-performance-comparable-to-human-coders-and-comparison-with-gpt-4",1792034875,{"doc_id":225,"doc_title":226,"file_type":138,"home_preview_img_url":227,"slug":228,"view_count":229,"category_name":40,"create_tm":230},31794,"A Study on Prompt Injection Attack Against LLM Integrated Mobile Robotic Systems","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229749241009/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109959&Signature=Ipsl7ofacdk5IqIa%2Fx1Ya6vio5c%3D","a-study-on-prompt-injection-attack-against-llm-integrated-mobile-robotic-systems",48,1780174820]