[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-350412-105":59,"doc-detail-350412-en":131},{"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","a-clip-based-framework-for-multiclass-lung-histopathology-classification-with-prompt-engineering-and-class-imbalance-aware-focal-optimization","A CLIP-based framework for multiclass lung histopathology classification with prompt engineering and class-imbalance-aware focal optimization","","Lung cancer remains a leading cause of cancer mortality, making accurate histopathological classification essential for timely diagnosis and treatment planning. This study proposes a CLIP-based multimodal framework to classify benign lung tissue, lung adenocarcinoma, and lung squamous cell carcinoma using domain-specific prompt engineering and similarity-based prediction in a shared embedding space. Fine-tuning integrates data augmentation, focal loss, AdamW, OneCycle scheduling, mixed precision, gradient clipping, and early stopping, achieving best validation accuracy of 95.20% with strong macro/micro AUC before early stopping.",{"@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/a-clip-based-framework-for-multiclass-lung-histopathology-classification-with-prompt-engineering-and-class-imbalance-aware-focal-optimization/350412/",{"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/a-clip-based-framework-for-multiclass-lung-histopathology-classification-with-prompt-engineering-and-class-imbalance-aware-focal-optimization/350412.png","ImageObject",300,407,{"name":92,"@type":93},"supergirl","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-10-29","2026-09-22",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",11,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What does the CLIP-based framework classify in lung histopathology images?","Question",{"text":113,"@type":114},"It distinguishes benign lung tissue, lung adenocarcinoma, and lung squamous cell carcinoma using a pretrained CLIP backbone and prompt-engineered text inputs.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"How does the method perform classification?",{"text":118,"@type":114},"It pairs images with class-specific text prompts and uses similarity-based classification in a shared embedding space produced by CLIP.",{"name":120,"@type":111,"acceptedAnswer":121},"Which training techniques are used to improve convergence and robustness?",{"text":122,"@type":114},"The pipeline includes data augmentation, Focal Loss, AdamW optimization, OneCycle learning-rate scheduling, mixed-precision training, gradient clipping, and early stopping.","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},350412,1790258461,{"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},962088121634,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","[www. nature.com/scientificreports](www. nature.com/scientificreports)  \nOPEN  \nA CLIP-based framework for multiclass lung histopathology classification with prompt engineering and class-imbalanceaware focal optimization  \nSadia Munawar1, Fareeha Hanif2,3, Ali Raza3,4,5􀀍, Muhammad Farman4,6,9 & Evren Hincal4,7,8  \nLung cancer remains one of the leading causes of cancer-related mortality worldwide, and accurate histopathological classification is essential for timely diagnosis and treatment planning. This study presents a Contrastive Language Image Pretraining (CLIP)-based framework for multiclass lung histopathology classification, designed to distinguish among benign lung tissue, lung adenocarcinoma, and lung squamous cell carcinoma. The proposed approach leverages a pretrained CLIP ViT-B/32 backbone, domain-specific prompt engineering, multimodal image text pairing, and similarity-based classification within a shared embedding space. To strengthen convergence and robustness during fine-tuning, the training pipeline incorporates data augmentation, Focal Loss, AdamW optimization, OneCycle learning rate scheduling, mixed-precision training, gradient clipping, and early stopping. The dataset is organized into separate training, validation, and testing splits, with the reported training and validation partitions containing 3,500 and 500 images per class, respectively. Experimental training on aTeslaT4 GPU demonstrated steady performance improvement across epochs, with the best validation accuracy reaching 95.20%, accompanied by a macro AUC of 0.9870 and a micro AUC of 0.9877, before early stopping was triggered at epoch 23. These findings indicate that integrating CLIP with pathology-specific text prompts provides a strong and reliable framework for automated lung cancer histopathology classification, with promising potential for future intelligent digital pathology systems.  \nKeywords Lung cancer, Histopathology image classification, CLIP, Vision language model, Prompt engineering, Multiclass classification, Digital pathology, Contrastive learning, Focal Loss, Deep learning  \nLung cancer remains a major global public health burden because of its high incidence, substantial mortality, and frequent diagnosis at advanced stages. Therefore, timely and accurate disease characterization is essential for improving patient management and survival outcomes. From a clinical perspective, histological subtype determination is particularly important in non-small cell lung cancer (NSCLC), as treatment planning, prognosis estimation, molecular testing pathways, and eligibility for targeted therapies are strongly influenced by whether the tissue is classified as benign lung tissue, lung adenocarcinoma, or lung squamous cell carcinoma. Global cancer surveillance reports continue to identify lung cancer as one of the most commonly diagnosed cancers worldwide and the leading cause of cancer-related death, highlighting the need for reliable diagnostic pipelines that can support earlier and more accurate clinical decision-making1,2.  \n1Department of Computer Science, COMSATS University Islamabad, Vehari Campus, Vehari, Pakistan. 2Department of Mathematics, University of Education, Vehari Campus, Lahore, Pakistan. 3College of Computer Science, KSUx Training Platform, King Saud University, Riyadh, Saudi Arabia. 4Department of Mathematics, Mathematics Research Center, Near East University, Mersin 10, 99138 Nicosia, Turkey. 5International Center for Interdisciplinary Research in Sciences (ICIRS), The University of Lahore, Lahore, Pakistan. 6Department of Biostatistics and Medical Informatics, Faculty of Medicine, Karadeniz Technical University, Trabzon, Turkey. 7Department of Mathematical Sciences, Saveetha School of Engineering, SIMATS, Chennai 602105, Tamil Nadu, India. 8Research Center of Applied Mathematics, Khazar University, Baku, Azerbaijan. 9Department of Computer Engineering, Biruni University, 34010 Istanbul, Turkey. 􀀍 email: [alleerazza786@gm","cbCaiuahQtA1tfoJ","https://ap.wps.com/l/cbCaiuahQtA1tfoJ","pdf",4548294,26,"English","# Introduction\n## Challenges in lung histopathology image analysis","[{\"question\":\"What does the CLIP-based framework classify in lung histopathology images?\",\"answer\":\"It distinguishes benign lung tissue, lung adenocarcinoma, and lung squamous cell carcinoma using a pretrained CLIP backbone and prompt-engineered text inputs.\"},{\"question\":\"How does the method perform classification?\",\"answer\":\"It pairs images with class-specific text prompts and uses similarity-based classification in a shared embedding space produced by CLIP.\"},{\"question\":\"Which training techniques are used to improve convergence and robustness?\",\"answer\":\"The pipeline includes data augmentation, Focal Loss, AdamW optimization, OneCycle learning-rate scheduling, mixed-precision training, gradient clipping, and early stopping.\"}]","A CLIP-based framework for multiclass lung histopathology classification with prompt engineering and class-imbalance-aware focal optimization | PDF",1790088908,66,[148,152,156,160],{"page_no":8,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/d2900a759a3c097dff9e7b28c91cd3dd.webp",983,1291,{"page_no":14,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/9ef71de346d50fab6268a595a54323de.webp",982,1290,{"page_no":81,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/14d4c4523a2250d0a2b89e4b67a6e751.webp",981,1289,{"page_no":19,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/5d687495ee753b4125f3de306581b2aa.webp",980,1287]