Article(id=1322631215211987425, tenantId=1146029695717560320, journalId=1302319053441957962, issueId=1322631195876242221, articleNumber=null, orderNo=null, doi=10.7501/j.issn.0253-2670.2026.17.019, pmid=null, cstr=null, oa=null, hot=0, price=null, onlineType=0, articleFormat=0, articleType=null, articleTypeStr=null, receivedDate=1781020800000, receivedDateStr=2026-06-10, revisedDate=null, revisedDateStr=null, acceptedDate=null, acceptedDateStr=null, onlineDate=1793269455006, onlineDateStr=2026-10-29, pubDate=null, pubDateStr=null, doiRegisterDate=null, doiRegisterDateStr=null, onlineIssueDate=1793269455006, onlineIssueDateStr=2026-10-29, onlineJustAcceptDate=null, onlineJustAcceptDateStr=null, onlineFirstDate=null, onlineFirstDateStr=null, sourceXml=null, magXml=null, createTime=1793269455006, creator=13701087609, updateTime=1793269455006, updator=13701087609, issue=Issue{id=1322631195876242221, tenantId=1146029695717560320, journalId=1302319053441957962, year='2026', volume='57', issue='17', pageStart='6661', pageEnd='7072', issueExtLink='null', onlineDate='null', pubDate='1789142400000', pubDateStr='2026-09-12', beforeIssueId=null, nextIssueId=null, price=null, status=1, issueComplete=1, articleOrder=1, issueType=-1, specialIssue=null, createTime=1793269450396, creator='13701087609', updateTime=1793269538381, updator='13701087609', preIssue=null, nextIssue=null, articleTotal=null, ext={EN=IssueExt(id=1322631565008556693, tenantId=1146029695717560320, journalId=1302319053441957962, issueId=1322631195876242221, language=EN, specialIssueTitle=, coverIllustrator=null, specialIssueEditor=, specialIssueAbout=), CN=IssueExt(id=1322631565008556694, tenantId=1146029695717560320, journalId=1302319053441957962, issueId=1322631195876242221, language=CN, specialIssueTitle=, coverIllustrator=null, specialIssueEditor=, specialIssueAbout=)}, issueFiles=null, downloadFileDto=null}, startPage=6878, endPage=6886, ext={EN=ArticleExt(id=1322631215534948835, articleId=1322631215211987425, tenantId=1146029695717560320, journalId=1302319053441957962, language=EN, title=DWG-CA-YOLOv8 algorithm for real-time detection of capsule defect, columnId=null, journalTitle=Chinese Traditional and Herbal Drugs, columnName=null, runingTitle=null, highlight=null, articleAbstract=Objective To address the challenges of difficult detection of tiny tangential defects, strong background noise interference, and the difficulties in deploying general detection models on low-computing-power edge devices in pharmaceutical capsule production lines, an improved lightweight object detection algorithm is proposed. Methods Using YOLOv8n as the baseline architecture, targeted optimizations are performed through a three-pronged strategy. A coordinate attention (CA) mechanism is embedded in the backbone network to enhance the model’s spatial perception capability for tiny tangential defects and edge micro-defects of capsules. A C2f_GhostConv module is designed to reconstruct the neck network, utilizing Ghost convolution (“primary convolution + cheap operations”) to enhance fine-grained feature representation. Depthwise separable convolution (DWConv) is comprehensively adopted to replace the standard convolution in the backbone, decoupling spatial convolution and channel fusion into two independent steps, thereby achieving deep compression of parameter count and computational load. Results On an industrial dataset containing 1 204 images of various capsule defects, DWG-CA-YOLOv8 achieves a mean Average Precision (mAP@0.5) of 90.5%, demonstrating high-precision localization and accurate classification for six defect types and normal capsules, meeting the reliability required for industrial real-time detection. The model’s parameter count is reduced to 2.10 M, and the floating-point operations (FLOPs) to 5.9 G, representing reductions of 30.2% and 28.1%, respectively, significantly improving lightweight performance. Conclusion This study successfully achieves synergistic optimization of detection accuracy and model complexity, providing a scalable and low-cost lightweight solution for real-time online quality control of pharmaceutical production lines., authors=PENG Xulong1, WANG Shengsheng1, YAO Tian1, WAN Qingzhao1, MAO Zhixiong1, WU Zhenfeng1, YANG Ming1, PENG Changchun2, WANG Yaqi1,3, authorsList=PENG Xulong, WANG Shengsheng, YAO Tian, WAN Qingzhao, MAO Zhixiong, WU Zhenfeng, YANG Ming, PENG Changchun, WANG Yaqi, authorCompany=1 National Key Laboratory of Classical Formula for Modern Traditional Chinese Medicine Creation, Jiangxi University of Chinese Medicine, Nanchang 330004, China;
2 Jiangxi JeMinCare Group Co., Ltd., Nanchang 330224, China;
3 Traditional Chinese Medicine Pharmaceutical Technology Collaborative Innovation Institute, Jiangxi University of Chinese Medicine, Nanchang 330004, China, correspAuthors=null, authorNote=null, correspAuthorsNote=null, copyrightStatement=null, copyrightOwner=null, extLink=null, articleAbsUrl=null, sourceXml=null, magXml=null, pdfUrl=null, pdf=null, pdfFileSize=null, pdfExtLink=null, richHtmlUrl=null, mobilePdfUrl=null, reviewReport=null, pdfFirstPage=null, abstractGraph=null, abstractGraphContent=null, abstractVideo=null, citation=null, cebUrl=null, magXmlContent=null, mapNumber=null, fund=null), CN=ArticleExt(id=1322631215463645666, articleId=1322631215211987425, tenantId=1146029695717560320, journalId=1302319053441957962, language=CN, title=胶囊缺陷实时检测的DWG-CA-YOLOv8算法, columnId=1304140194819629763, journalTitle=中草药, columnName=数据挖掘与循证医学, runingTitle=null, highlight=null, articleAbstract=目的 针对制药工业胶囊生产线中微小切线缺陷易漏检、背景噪声干扰强以及通用检测模型难以在低算力边缘设备部署等难题,提出一种改进的轻量化目标检测算法。方法 以YOLOv8n为基准架构,通过三重策略进行针对性优化,在骨干网络嵌入坐标注意力(coordinate attention,CA)机制,强化模型对胶囊切线及边缘微小瑕疵的空间感知能力;设计C2f_GhostConv模块重构颈部网络,利用Ghost卷积“主卷积+廉价操作”增强细粒度特征表达;采用深度可分离卷积(depthwise separable convolution,DWConv)全面替换骨干网络标准卷积,将空间卷积与通道融合解耦为2个独立步骤,实现参数量与计算量的深度压缩。结果 在包含1 204张多类胶囊缺陷的工业数据集上,DWG-CA-YOLOv8的平均精度均值(mAP@0.5)达90.5%,表明模型能够对6类缺陷及正常胶囊进行高精度定位与准确分类,具备工业级实时检测所需的可靠性;模型参数量降至2.10 M,浮点运算量降至5.9 GFLOPs,分别减少30.2%和28.1%,显著提升轻量化水平。结论 成功实现了检测精度与模型复杂度的协同优化,为制药生产线的实时在线质量控制提供了可扩展、低成本的轻量化方案。, authors=彭旭龙1, 王生生1, 姚添1, 万倾兆1, 毛志雄1, 伍振峰1, 杨明1, 彭常春2, 王雅琪1,3, authorsList=彭旭龙, 王生生, 姚添, 万倾兆, 毛志雄, 伍振峰, 杨明, 彭常春, 王雅琪, authorCompany=1 江西中医药大学 经典名方现代中药创制全国重点实验室, 江西南昌 330004;
2 江西济民可信集团有限公司, 江西 南昌 330224;
3 江西中医药大学 中药制药技术协同创新研究院, 江西南昌 330004, correspAuthors=王雅琪, authorNote=彭旭龙: 彭旭龙,硕士研究生,研究方向为中药药剂。Tel:(0791)87118108 E-mail:1224261301@qq.com, correspAuthorsNote=null, copyrightStatement=null, copyrightOwner=null, extLink=null, articleAbsUrl=null, sourceXml=null, magXml=null, pdfUrl=null, pdf=O6alb2ICqQ7m8VaNb4BAww==, pdfFileSize=1579912, pdfExtLink=null, richHtmlUrl=null, mobilePdfUrl=null, reviewReport=null, pdfFirstPage=null, abstractGraph=null, abstractGraphContent=null, abstractVideo=null, citation=null, cebUrl=null, magXmlContent=null, mapNumber=null, fund=国家重点研发计划项目资助 (2023YFC3504504))}, authors=null, keywords=[Keyword(id=1322634609477660861, tenantId=1146029695717560320, journalId=1302319053441957962, articleId=1322631215211987425, language=CN, orderNo=1, keyword=机器视觉), Keyword(id=1322634609553158334, tenantId=1146029695717560320, journalId=1302319053441957962, articleId=1322631215211987425, language=CN, orderNo=2, keyword=胶囊缺陷检测), Keyword(id=1322634609620267199, tenantId=1146029695717560320, journalId=1302319053441957962, articleId=1322631215211987425, language=CN, orderNo=3, keyword=YOLOv8), Keyword(id=1322634609704153280, tenantId=1146029695717560320, journalId=1302319053441957962, articleId=1322631215211987425, language=CN, orderNo=4, keyword=Ghost卷积), Keyword(id=1322634609767067841, tenantId=1146029695717560320, journalId=1302319053441957962, articleId=1322631215211987425, language=CN, orderNo=5, keyword=轻量化网络), Keyword(id=1322634609930645698, tenantId=1146029695717560320, journalId=1302319053441957962, articleId=1322631215211987425, language=EN, orderNo=1, keyword=machine vision), Keyword(id=1322634610001948867, tenantId=1146029695717560320, journalId=1302319053441957962, articleId=1322631215211987425, language=EN, orderNo=2, keyword=capsule defect detection), Keyword(id=1322634610069057732, tenantId=1146029695717560320, journalId=1302319053441957962, articleId=1322631215211987425, language=EN, orderNo=3, keyword=YOLOv8), Keyword(id=1322634610119389381, tenantId=1146029695717560320, journalId=1302319053441957962, articleId=1322631215211987425, language=EN, orderNo=4, keyword=Ghost convolution), Keyword(id=1322634610190692550, tenantId=1146029695717560320, journalId=1302319053441957962, articleId=1322631215211987425, language=EN, orderNo=5, keyword=lightweight network)], refs=null, funds=null, companyList=null, figs=null, attaches=null, journal=Journal(id=1302309778002903112, delFlag=0, nameCn=中草药, nameEn=Chinese Traditional and Herbal Drugs, nameHistory1=null, nameHistory2=null, issn=0253-2670, eissn=null, cn=12-1108/R, coden=null, periodic=3, language=CN, oaType=null, ccby=null, superviseOffice=null, ownerOffice=null, pubOffice=null, editorOffice=null, officeType=null, aims=null, clcCode=null, officeProv=null, officeCity=null, officeAddr=null, officeZip=null, officeEmail=null, officePhone=null, editDirector=null, officeDirector=null, officeDirectorPhone=null, officeStaffNum=null, officeEmpNum=null, coverPicUrl=cGpSKCP11AF8PAOcTXYWfg==, journalPrice=null, startedYear=null, abbrevIsoEn=Chinese Traditional and Herbal Drugs, journalRemark=null, publicationField=null, createdTime=1788424446827, updatedTime=1788949289390, createdBy=18614031015, updatedBy=13041195026, firstLetterCn=Z, firstLetterEn=Z, subjectCode=Medical and Pharmaceutical Sciences, subjectName=null, subjectCodeEn=Medical and Pharmaceutical Sciences, subjectNameEn=null, picCn=cGpSKCP11AF8PAOcTXYWfg==, picEn=Xw//kxUC3ON4eHxev0QLhQ==, jcr=null, cjcr=null, exts=[JournalExt(id=1304511127375863983, language=CN, name=中草药, nameHistory1=null, nameHistory2=null, managedBy=, sponsoredBy=, publishedBy=, editorOffice=, officeProv=null, officeCity=null, officeAddr=, officeZip=, editDirector=, officeDirector=null, officePhone=null, coverPicUrl=null, journalRemark=, submitArticleUrl=null, websiteUrl=, createdTime=1788949289411, updatedTime=1788949289411, createdBy=13041195026, updatedBy=13041195026, submissionGuidelinesUrl=, submissionAuthorUrl=https://www.tiprpress.com/zcy/author/login, submissionEditorUrl=https://www.tiprpress.com/zcy/editor/login, submissionReviewUrl=https://www.tiprpress.com/zcy/reviewer/login, submissionCeEditorUrl=, submissionAeEditorUrl=, option={"copyright":""}), JournalExt(id=1304511127442972848, language=EN, name=Chinese Traditional and Herbal Drugs, nameHistory1=null, nameHistory2=null, managedBy=, sponsoredBy=, publishedBy=, editorOffice=, officeProv=null, officeCity=null, officeAddr=, officeZip=, editDirector=, officeDirector=null, officePhone=null, coverPicUrl=null, journalRemark=, submitArticleUrl=null, websiteUrl=, createdTime=1788949289427, updatedTime=1788949289427, createdBy=13041195026, updatedBy=13041195026, submissionGuidelinesUrl=, submissionAuthorUrl=https://www.tiprpress.com/zcy/author/login, submissionEditorUrl=https://www.tiprpress.com/zcy/editor/login, submissionReviewUrl=https://www.tiprpress.com/zcy/reviewer/login, submissionCeEditorUrl=, submissionAeEditorUrl=, option={"copyright":""})], databaseList=null, tenantJournalId=1302319053441957962, websiteList=[Website(id=1302319176408912052, webName=null, webTitle=null, webDomain=null, webCopyrigh=null, webIpcNo=null, seoTitle=null, seoKeywords=null, seoDescription=null, tenantJournalId=null, journalId=1302319053441957962, journalNameCn=null, journalNameEn=null, grayFlag=null, tenantId=1146029695717560320, platformId=null, journalGroupId=null, journalGroupNameCn=null, journalGroupNameEn=null, type=1, domain=https://castjournals.cast.org.cn/joweb/zcy/CN, language=CN, createTime=1788426687576, createBy=18614031015, updateTime=1788427346252, updateBy=18614031015, name=中草药-中文, tplId=1146099689490845704, title=中草药, delFlag=0, indexPage=/home, props=[WebsiteProps(id=1302322043651904087, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1302319176408912052, code=articleTextType, value=kx, createTime=1788427371180, updateTime=1788427371180, creator=18614031015, updator=18614031015), WebsiteProps(id=1302322043593183828, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1302319176408912052, code=banner, value=null, createTime=1788427371166, updateTime=1788427371166, creator=18614031015, updator=18614031015), WebsiteProps(id=1302322043672875610, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1302319176408912052, code=grayFlag, value=0, createTime=1788427371185, updateTime=1788427371185, creator=18614031015, updator=18614031015), WebsiteProps(id=1302322043584795219, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1302319176408912052, code=logo, value=https://castjournals.cast.org.cn/joweb/zcy/CN/file/pic?fileId=uiD1gpiRqR++OLOz4iKzDg==, createTime=1788427371164, updateTime=1788427371164, creator=18614031015, updator=18614031015), WebsiteProps(id=1302322043689652828, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1302319176408912052, code=minRunFlag, value=0, createTime=1788427371189, updateTime=1788427371189, creator=18614031015, updator=18614031015), WebsiteProps(id=1302322043643515478, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1302319176408912052, code=picServerUrl, value=https://castjournals.cast.org.cn/joweb/zcy/CN/file/pic, createTime=1788427371178, updateTime=1788427371178, creator=18614031015, updator=18614031015), WebsiteProps(id=1302322043681264219, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1302319176408912052, code=silenceFlag, value=0, createTime=1788427371187, updateTime=1788427371187, creator=18614031015, updator=18614031015), WebsiteProps(id=1302322043601572437, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1302319176408912052, code=staticResourcePath, value=https://castjournals.cast.org.cn/joweb/cast_kjdb_cn_619/, createTime=1788427371168, updateTime=1788427371168, creator=18614031015, updator=18614031015), WebsiteProps(id=1302322043660292696, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1302319176408912052, code=themeColor, value=null, createTime=1788427371182, updateTime=1788427371182, creator=18614031015, updator=18614031015), WebsiteProps(id=1302322043668681305, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1302319176408912052, code=themeStyle, value=null, createTime=1788427371184, updateTime=1788427371184, creator=18614031015, updator=18614031015)]), Website(id=1302319176715096246, webName=null, webTitle=null, webDomain=null, webCopyrigh=null, webIpcNo=null, seoTitle=null, seoKeywords=null, seoDescription=null, tenantJournalId=null, journalId=1302319053441957962, journalNameCn=null, journalNameEn=null, grayFlag=null, tenantId=1146029695717560320, platformId=null, journalGroupId=null, journalGroupNameCn=null, journalGroupNameEn=null, type=1, domain=https://castjournals.cast.org.cn/joweb/zcy/EN, language=EN, createTime=1788426687649, createBy=18614031015, updateTime=1788427341161, updateBy=18614031015, name=中草药-英文, tplId=1146101810881728533, title=Chinese Traditional and Herbal Drugs, delFlag=0, indexPage=/home, props=[WebsiteProps(id=1302322015206134340, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1302319176715096246, code=articleTextType, value=kx, createTime=1788427364398, updateTime=1788427364398, creator=18614031015, updator=18614031015), WebsiteProps(id=1302322015185162817, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1302319176715096246, code=banner, value=null, createTime=1788427364393, updateTime=1788427364393, creator=18614031015, updator=18614031015), WebsiteProps(id=1302322015227105863, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1302319176715096246, code=grayFlag, value=0, createTime=1788427364403, updateTime=1788427364403, creator=18614031015, updator=18614031015), WebsiteProps(id=1302322015176774208, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1302319176715096246, code=logo, value=https://castjournals.cast.org.cn/joweb/zcy/EN/file/pic?fileId=uiD1gpiRqR++OLOz4iKzDg==, createTime=1788427364391, updateTime=1788427364391, creator=18614031015, updator=18614031015), WebsiteProps(id=1302322015239688777, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1302319176715096246, code=minRunFlag, value=0, createTime=1788427364406, updateTime=1788427364406, creator=18614031015, updator=18614031015), WebsiteProps(id=1302322015201940035, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1302319176715096246, code=picServerUrl, value=https://castjournals.cast.org.cn/joweb/zcy/EN/file/pic, createTime=1788427364397, updateTime=1788427364397, creator=18614031015, updator=18614031015), WebsiteProps(id=1302322015235494472, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1302319176715096246, code=silenceFlag, value=0, createTime=1788427364405, updateTime=1788427364405, creator=18614031015, updator=18614031015), WebsiteProps(id=1302322015193551426, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1302319176715096246, code=staticResourcePath, value=https://castjournals.cast.org.cn/joweb/cast_kjdb_en_623/, createTime=1788427364395, updateTime=1788427364395, creator=18614031015, updator=18614031015), WebsiteProps(id=1302322015214522949, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1302319176715096246, code=themeColor, value=null, createTime=1788427364400, updateTime=1788427364400, creator=18614031015, updator=18614031015), WebsiteProps(id=1302322015218717254, tenantId=1146029695717560320, journalId=null, journalGroupId=null, siteId=1302319176715096246, code=themeStyle, value=null, createTime=1788427364401, updateTime=1788427364401, creator=18614031015, updator=18614031015)])], journalTitle=中草药, weixinUrl=null, journalUrl=https://www.tiprpress.com/zcy, iacademicId=null, status=1, seqNo=null, journalTitleEn=Chinese Traditional and Herbal Drugs, journalPhotoCn=cGpSKCP11AF8PAOcTXYWfg==, journalPhotoEn=Xw//kxUC3ON4eHxev0QLhQ==, journalFirstLetter=Z, journalRecommend=null, journalNew=null, journalCollection=null, jcrJf=null, cjcrJf=null, jcrJfStr=null, cjcrJfStr=null, submissionFirstDecision=null, sciSubjectClassification=null, casSubjectClassification=null, citeScore=null, totalCitationFrequency=null, icpCode=null, psCode=null, advertisingLicenseCode=null, copyrightInformation=null, country=null, option=, provinceCode=null, provinceName=null, collectFlag=false, interPubPlatform=, interPubPlatformUrl=null), detailUrlCn=https://castjournals.cast.org.cn/joweb/zcy/CN/10.7501/j.issn.0253-2670.2026.17.019, detailUrlEn=https://castjournals.cast.org.cn/joweb/zcy/EN/10.7501/j.issn.0253-2670.2026.17.019, pdfUrlCn=https://castjournals.cast.org.cn/joweb/zcy/CN/PDF/10.7501/j.issn.0253-2670.2026.17.019, pdfUrlEn=https://castjournals.cast.org.cn/joweb/zcy/EN/PDF/10.7501/j.issn.0253-2670.2026.17.019, aliStartDate=null, aliEndDate=null, collectionFlag=false, citedCount=null, citedUrl=null, previewStatus=0, delFlag=0, hasFullText=0, orderTime=1789142400000, fullTextJson=null, articleText=null, reference=Vijayakumar A, Vairavasundaram S, Koilraj J A S, et al. Real-time visual intelligence for defect detection in pharmaceutical packaging [J]. Sci Rep, 2024, 14: 18811.
董豪, 李少波, 杨静, 等. 基于特征融合与语义引导的药用胶囊表面缺陷检测[J]. 计算机集成制造系统, 2025, 31(1): 158-170.
Wang Z Q, Tao Q, Zhong Z J, et al. Enhancing YOLOv8n with Mamba-like linear attention for defect detection and coating thickness analysis of irregular film tablet [J]. Int J Pharm, 2025, 678: 125704.
洪景山, 祝颖丹, 宋康康, 等. 基于深度学习的工业缺陷检测研究进展[J]. 计算机科学, 2024, 51(10): 261-275.
孙兴, 李杨, 毛天驰, 等. 改进YOLOv8在中药饮片自动识别标注中的研究与应用[J]. 中草药, 2025, 56(1): 216-226.
李俊萩, 赵艺凡, 张晴晖, 等. 绿色褚橙的CFCN-YOLO检测算法[J]. 南京农业大学学报, 2025, 48(6): 1439-1450.
Gu Q, Han Z G, Kong S, et al. DCYOLO: Dual negative weighting label assignment and cross-layer decouple head for YOLO in remote sensing images [J]. Expert Syst Appl, 2025, 281: 127595.
Yao J L, Xu S, Huang F J, et al. Improved lightweight infrared road target detection method based on YOLOv8[J]. Infrared Phys Technol, 2024, 141: 105497.
Sapkota R, Flores-Calero M, Qureshi R, et al. YOLO advances to its genesis: A decadal and comprehensive review of the you only look once (YOLO) series [J]. Artif Intell Rev, 2025, 58(9): 274.
Hou Q B, Zhou D Q, Feng J S. Coordinate attention for efficient mobile network design [A] // 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) [C]. Nashville: IEEE, 2021: 13708-13717.
Xie C, Zhu H Y, Fei Y Q. Deep coordinate attention network for single image super-resolution [J]. IET Image Process, 2022, 16(1): 273-284.
洪远, 姜明新, 冯国露, 等. 基于FLH-YOLOv8的轻量级红外目标检测算法[J]. 传感技术学报, 2025, 38(4): 658-667.
王明慧, 陈燕, 寇立伟, 等. 基于YOLOv8n的轻量化鱼类检测算法[J]. 现代电子技术, 2025, 48(5): 79-85.
张传伟, 张天乐, 周李兵, 等. 基于GCDB-YOLOv8的矿用无人车井下运输巷道工作人员检测方法[J]. 煤炭学报, 2025, 50(10): 4553-4568.
Wang Q L, Hu Z Y, Li E T, et al. YOLOLS: A lightweight and high-precision power insulator defect detection network for real-time edge deployment [J]. Energies, 2025, 18(7): 1668.
王晓雯, 于骐瑞, 常居泰. 基于改进YOLOv8的道路缺陷检测[J]. 电子测量技术, 2025, 48(14): 154-161.
Yu Z H, Liang H Z, Ye O, et al. ESOD-YOLOv8: Small object detection enhanced with auto-disturbance rejection convolution [J]. Expert Syst Appl, 2026, 296: 129046.
Han H, Zhu F Z, Zhu B, et al. Target detection of remote sensing image based on an improved YOLOv5[J]. IEEE Geosci Remote Sens Lett, 2023, 20: 6011605.
Holzinger A, Langs G, Denk H, et al. Causability and explainability of artificial intelligence in medicine [J]. WIREs Data Min Knowl, 2019, 9(4): e1312.
Liu H I, Galindo M, Xie H X, et al. Lightweight deep learning for resource-constrained environments: A survey [J]. ACM Comput Surv, 2024, 56(10): 1-42.)
收藏切换
胶囊缺陷实时检测的DWG-CA-YOLOv8算法
收藏切换
PDF下载
中草药 | 数据挖掘与循证医学 2026,57(17): 6878-6886
收起
收藏切换
中草药 |数据挖掘与循证医学 2026 , 57 (17) : 6878 -6886
胶囊缺陷实时检测的DWG-CA-YOLOv8算法
全屏
彭旭龙1, 王生生1, 姚添1, 万倾兆1, 毛志雄1, 伍振峰1, 杨明1, 彭常春2, 王雅琪1,3
作者信息
    1 江西中医药大学 经典名方现代中药创制全国重点实验室, 江西南昌 330004;
    2 江西济民可信集团有限公司, 江西 南昌 330224;
    3 江西中医药大学 中药制药技术协同创新研究院, 江西南昌 330004
通讯作者:
王雅琪
作者简介:
彭旭龙: 彭旭龙,硕士研究生,研究方向为中药药剂。Tel:(0791)87118108 E-mail:1224261301@qq.com
DWG-CA-YOLOv8 algorithm for real-time detection of capsule defect
  • PENG Xulong1, WANG Shengsheng1, YAO Tian1, WAN Qingzhao1, MAO Zhixiong1, WU Zhenfeng1, YANG Ming1, PENG Changchun2, WANG Yaqi1,3
  • Affiliations
      1 National Key Laboratory of Classical Formula for Modern Traditional Chinese Medicine Creation, Jiangxi University of Chinese Medicine, Nanchang 330004, China;
      2 Jiangxi JeMinCare Group Co., Ltd., Nanchang 330224, China;
      3 Traditional Chinese Medicine Pharmaceutical Technology Collaborative Innovation Institute, Jiangxi University of Chinese Medicine, Nanchang 330004, China
    doi: 10.7501/j.issn.0253-2670.2026.17.019
    文章导航
    收藏切换
    目的 针对制药工业胶囊生产线中微小切线缺陷易漏检、背景噪声干扰强以及通用检测模型难以在低算力边缘设备部署等难题,提出一种改进的轻量化目标检测算法。方法 以YOLOv8n为基准架构,通过三重策略进行针对性优化,在骨干网络嵌入坐标注意力(coordinate attention,CA)机制,强化模型对胶囊切线及边缘微小瑕疵的空间感知能力;设计C2f_GhostConv模块重构颈部网络,利用Ghost卷积“主卷积+廉价操作”增强细粒度特征表达;采用深度可分离卷积(depthwise separable convolution,DWConv)全面替换骨干网络标准卷积,将空间卷积与通道融合解耦为2个独立步骤,实现参数量与计算量的深度压缩。结果 在包含1 204张多类胶囊缺陷的工业数据集上,DWG-CA-YOLOv8的平均精度均值(mAP@0.5)达90.5%,表明模型能够对6类缺陷及正常胶囊进行高精度定位与准确分类,具备工业级实时检测所需的可靠性;模型参数量降至2.10 M,浮点运算量降至5.9 GFLOPs,分别减少30.2%和28.1%,显著提升轻量化水平。结论 成功实现了检测精度与模型复杂度的协同优化,为制药生产线的实时在线质量控制提供了可扩展、低成本的轻量化方案。
    机器视觉  /  胶囊缺陷检测  /  YOLOv8  /  Ghost卷积  /  轻量化网络
    Objective To address the challenges of difficult detection of tiny tangential defects, strong background noise interference, and the difficulties in deploying general detection models on low-computing-power edge devices in pharmaceutical capsule production lines, an improved lightweight object detection algorithm is proposed. Methods Using YOLOv8n as the baseline architecture, targeted optimizations are performed through a three-pronged strategy. A coordinate attention (CA) mechanism is embedded in the backbone network to enhance the model’s spatial perception capability for tiny tangential defects and edge micro-defects of capsules. A C2f_GhostConv module is designed to reconstruct the neck network, utilizing Ghost convolution (“primary convolution + cheap operations”) to enhance fine-grained feature representation. Depthwise separable convolution (DWConv) is comprehensively adopted to replace the standard convolution in the backbone, decoupling spatial convolution and channel fusion into two independent steps, thereby achieving deep compression of parameter count and computational load. Results On an industrial dataset containing 1 204 images of various capsule defects, DWG-CA-YOLOv8 achieves a mean Average Precision (mAP@0.5) of 90.5%, demonstrating high-precision localization and accurate classification for six defect types and normal capsules, meeting the reliability required for industrial real-time detection. The model’s parameter count is reduced to 2.10 M, and the floating-point operations (FLOPs) to 5.9 G, representing reductions of 30.2% and 28.1%, respectively, significantly improving lightweight performance. Conclusion This study successfully achieves synergistic optimization of detection accuracy and model complexity, providing a scalable and low-cost lightweight solution for real-time online quality control of pharmaceutical production lines.
    machine vision  /  capsule defect detection  /  YOLOv8  /  Ghost convolution  /  lightweight network
    彭旭龙, 王生生, 姚添, 万倾兆, 毛志雄, 伍振峰, 杨明, 彭常春, 王雅琪. 胶囊缺陷实时检测的DWG-CA-YOLOv8算法. 中草药, 2026 , 57 (17) : 6878 -6886 . DOI: 10.7501/j.issn.0253-2670.2026.17.019
    PENG Xulong, WANG Shengsheng, YAO Tian, WAN Qingzhao, MAO Zhixiong, WU Zhenfeng, YANG Ming, PENG Changchun, WANG Yaqi. DWG-CA-YOLOv8 algorithm for real-time detection of capsule defect[J]. Chinese Traditional and Herbal Drugs, 2026 , 57 (17) : 6878 -6886 . DOI: 10.7501/j.issn.0253-2670.2026.17.019

      国家重点研发计划项目资助 (2023YFC3504504)

    参考文献 引证文献
    排序方式:
    Vijayakumar A, Vairavasundaram S, Koilraj J A S, et al. Real-time visual intelligence for defect detection in pharmaceutical packaging [J]. Sci Rep, 2024, 14: 18811.
    董豪, 李少波, 杨静, 等. 基于特征融合与语义引导的药用胶囊表面缺陷检测[J]. 计算机集成制造系统, 2025, 31(1): 158-170.
    Wang Z Q, Tao Q, Zhong Z J, et al. Enhancing YOLOv8n with Mamba-like linear attention for defect detection and coating thickness analysis of irregular film tablet [J]. Int J Pharm, 2025, 678: 125704.
    洪景山, 祝颖丹, 宋康康, 等. 基于深度学习的工业缺陷检测研究进展[J]. 计算机科学, 2024, 51(10): 261-275.
    孙兴, 李杨, 毛天驰, 等. 改进YOLOv8在中药饮片自动识别标注中的研究与应用[J]. 中草药, 2025, 56(1): 216-226.
    李俊萩, 赵艺凡, 张晴晖, 等. 绿色褚橙的CFCN-YOLO检测算法[J]. 南京农业大学学报, 2025, 48(6): 1439-1450.
    Gu Q, Han Z G, Kong S, et al. DCYOLO: Dual negative weighting label assignment and cross-layer decouple head for YOLO in remote sensing images [J]. Expert Syst Appl, 2025, 281: 127595.
    Yao J L, Xu S, Huang F J, et al. Improved lightweight infrared road target detection method based on YOLOv8[J]. Infrared Phys Technol, 2024, 141: 105497.
    Sapkota R, Flores-Calero M, Qureshi R, et al. YOLO advances to its genesis: A decadal and comprehensive review of the you only look once (YOLO) series [J]. Artif Intell Rev, 2025, 58(9): 274.
    Hou Q B, Zhou D Q, Feng J S. Coordinate attention for efficient mobile network design [A] // 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) [C]. Nashville: IEEE, 2021: 13708-13717.
    Xie C, Zhu H Y, Fei Y Q. Deep coordinate attention network for single image super-resolution [J]. IET Image Process, 2022, 16(1): 273-284.
    洪远, 姜明新, 冯国露, 等. 基于FLH-YOLOv8的轻量级红外目标检测算法[J]. 传感技术学报, 2025, 38(4): 658-667.
    王明慧, 陈燕, 寇立伟, 等. 基于YOLOv8n的轻量化鱼类检测算法[J]. 现代电子技术, 2025, 48(5): 79-85.
    张传伟, 张天乐, 周李兵, 等. 基于GCDB-YOLOv8的矿用无人车井下运输巷道工作人员检测方法[J]. 煤炭学报, 2025, 50(10): 4553-4568.
    Wang Q L, Hu Z Y, Li E T, et al. YOLOLS: A lightweight and high-precision power insulator defect detection network for real-time edge deployment [J]. Energies, 2025, 18(7): 1668.
    王晓雯, 于骐瑞, 常居泰. 基于改进YOLOv8的道路缺陷检测[J]. 电子测量技术, 2025, 48(14): 154-161.
    Yu Z H, Liang H Z, Ye O, et al. ESOD-YOLOv8: Small object detection enhanced with auto-disturbance rejection convolution [J]. Expert Syst Appl, 2026, 296: 129046.
    Han H, Zhu F Z, Zhu B, et al. Target detection of remote sensing image based on an improved YOLOv5[J]. IEEE Geosci Remote Sens Lett, 2023, 20: 6011605.
    Holzinger A, Langs G, Denk H, et al. Causability and explainability of artificial intelligence in medicine [J]. WIREs Data Min Knowl, 2019, 9(4): e1312.
    Liu H I, Galindo M, Xie H X, et al. Lightweight deep learning for resource-constrained environments: A survey [J]. ACM Comput Surv, 2024, 56(10): 1-42.
    2026年第57卷第17期
    PDF下载
    38
    7
    引用本文
    BibTeX
    文章信息
    doi: 10.7501/j.issn.0253-2670.2026.17.019
    • 接收时间:2026-06-10
    • 首发时间:2026-10-29
    补充材料
    相关文章
    文章信息
    作者
    出版历史
    • 收稿日期:2026-06-10
    基金
    作者信息
    参考文献
    分享链接
    https://castjournals.cast.org.cn/joweb/zcy/CN/10.7501/j.issn.0253-2670.2026.17.019
    分享至
    全文二维码

    扫描看全文

    引用本文
    BibTeX
    本文的引用情况
    2种不同金属材料的力学参数
    科
    Family
    属数
    Number of
    genus
    种数
    Number of
    species
    占总种数比例
    Percentage of
    total species (%)
    属
    Genus
    种数
    Number of
    species
    占总种数比例
    Percentage of total
    species (%)
    鹅膏菌科Amanitaceae 2 11 5.26 鹅膏菌属 Amanita 10 4.78
    小菇科 Mycenaceae 2 12 5.74 丝盖伞属 Inocybe 5 2.39
    多孔菌科 Polyporaceae 8 14 6.70 蜡蘑属 Laccaria 5 2.39
    红菇科 Russulaceae 3 23 11.00 小皮伞属 Marasmius 6 2.87
    小菇属 Mycena 11 5.26
    光柄菇属 Pluteus 5 2.39
    红菇属 Russula 17 8.13
    栓菌属 Trametes 5 2.39
    关闭全屏