Improved YOLOv7-Based Algorithm for Detecting Defect on Steel Surface

preprint OA: closed
Full text JSON View at publisher
Full text 11,501 characters · extracted from preprint-html · click to expand
Improved YOLOv7-Based Algorithm for Detecting Defect on Steel Surface | Research Square window.SnipcartSettings = { analytics: { enabled: false } }; (function() { var accessVector = localStorage.getItem('access_vector') || ''; window.dataLayer = window.dataLayer || []; if (accessVector) { window.dataLayer.push({ user: { profile: { profileInfo: { snid: accessVector } } } }); } })(); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-K279D39R'); Browse Preprints In Review Journals COVID-19 Preprints AJE Video Bytes Research Tools Research Promotion AJE Professional Editing AJE Rubriq About Preprint Platform In Review Editorial Policies Our Team Advisory Board Help Center Sign In Submit a Preprint Cite Share Download PDF Research Article Improved YOLOv7-Based Algorithm for Detecting Defect on Steel Surface Cong Hu, Danni Gong, Tian Zhou, Tianhao Huang, Xijun Huang, Chunting Wan This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-4680873/v1 This work is licensed under a CC BY 4.0 License Status: Posted Version 1 posted You are reading this latest preprint version Abstract Steel in the production and processing process is easily affected by raw materials and processing environment, resulting in surface defects, affecting its corrosion resistance and service life. In addition, the defect detection model based on deep learning is relatively large, and it is difficult to meet the demand for real-time steel surface defect detection tasks. To address the above problems, this paper proposes an improved model YOLOv7-Lig based on the YOLOv7-tiny model. by introducing the CBAM attention mechanism, as well as using the Wise-IoU loss function to replace the original CIoU loss function, the network model is enhanced to pay attention to the key features of the input data, so that it can accurately capture the true boundary of the target, effectively reduces the problem of inadequate feature extraction. The CSP-Faster module is introduced in the BACKBONE, which reduces the number of parameters of the net work model and helps the network model to be deployed in resource-constrained environments. Then the CARAFE upsampling operator is introduced at the head, which effectively aggregates the context information and improves the accuracy of the upsampling. The YOLOv7-Lig model achieves a mAP of 85.1% and a detection speed of 82FPS, which proves that the model can improve the accuracy and detection speed of the model while reducing the number of parameters. Steel surface defects Deep learning Target detection YOLOv7-tiny Full Text Additional Declarations No competing interests reported. Cite Share Download PDF Status: Posted Version 1 posted You are reading this latest preprint version Research Square lets you share your work early, gain feedback from the community, and start making changes to your manuscript prior to peer review in a journal. As a division of Research Square Company, we’re committed to making research communication faster, fairer, and more useful. We do this by developing innovative software and high quality services for the global research community. Our growing team is made up of researchers and industry professionals working together to solve the most critical problems facing scientific publishing. Also discoverable on Platform About Our Team In Review Editorial Policies Advisory Board Help Center Resources Author Services Accessibility API Access RSS feed Manage Cookie Preferences © Research Square 2026 | ISSN 2693-5015 (online) Privacy Policy Terms of Service Do Not Sell My Personal Information {"props":{"pageProps":{"initialData":{"identity":"rs-4680873","acceptedTermsAndConditions":true,"allowDirectSubmit":true,"archivedVersions":[],"articleType":"Research Article","associatedPublications":[],"authors":[{"id":330471679,"identity":"e2e328a4-38cc-4248-a7be-0733159dd31f","order_by":0,"name":"Cong Hu","email":"","orcid":"","institution":"School of Electronic Engineering and Automation, Guilin University of Electronic Technology","correspondingAuthor":false,"prefix":"","firstName":"Cong","middleName":"","lastName":"Hu","suffix":""},{"id":330471680,"identity":"8d0e7bd7-7650-49de-9c5b-ebe9a94376be","order_by":1,"name":"Danni Gong","email":"","orcid":"","institution":"School of Electronic Engineering and Automation, Guilin University of Electronic Technology","correspondingAuthor":false,"prefix":"","firstName":"Danni","middleName":"","lastName":"Gong","suffix":""},{"id":330471682,"identity":"b4be81ca-7870-45f6-a851-38ab5b30b04d","order_by":2,"name":"Tian Zhou","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAw0lEQVRIiWNgGAWjYBACefnzHww+GNjI8ROtxXAGg0HhjIo0Y8kGovXcYDD4zHPmcOKGA8TqYJzdkLiBt42ZcfPx5A0MPyq2EdbCLnPgsIFkGxuz2ZlnBYw9Z24TYUtDYpuBYRsPm9mNHANmxjYitDAcSGb/kdgmwWM8g2gtN9IYDA6cMZAwkCBWi2HPGQbDhooEAwmgXw4S5Rd59h4G4z8G/+v725M3PvhRQYzDECDB4ABJ6sFaSNUxCkbBKBgFIwQAAMGJP3MMXrpXAAAAAElFTkSuQmCC","orcid":"","institution":"School of Electronic Information and Automation, Guilin University of Aerospace Technology","correspondingAuthor":true,"prefix":"","firstName":"Tian","middleName":"","lastName":"Zhou","suffix":""},{"id":330471684,"identity":"f8b12617-2fae-426a-8a69-54082bafc271","order_by":3,"name":"Tianhao Huang","email":"","orcid":"","institution":"School of Electronic Engineering and Automation, Guilin University of Electronic Technology","correspondingAuthor":false,"prefix":"","firstName":"Tianhao","middleName":"","lastName":"Huang","suffix":""},{"id":330471685,"identity":"edefda88-c232-42c1-b5a4-6ac0d5a20e41","order_by":4,"name":"Xijun Huang","email":"","orcid":"","institution":"School of Electronic Engineering and Automation, Guilin University of Electronic Technology","correspondingAuthor":false,"prefix":"","firstName":"Xijun","middleName":"","lastName":"Huang","suffix":""},{"id":330471686,"identity":"83c38089-17d6-4e70-b0d4-685c3509f556","order_by":5,"name":"Chunting Wan","email":"","orcid":"","institution":"School of Electronic Engineering and Automation, Guilin University of Electronic Technology","correspondingAuthor":false,"prefix":"","firstName":"Chunting","middleName":"","lastName":"Wan","suffix":""}],"badges":[],"createdAt":"2024-07-03 13:51:31","currentVersionCode":1,"declarations":"","doi":"10.21203/rs.3.rs-4680873/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-4680873/v1","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":61286980,"identity":"0e74a8b4-82f9-4f28-b387-e2b51013e48c","added_by":"auto","created_at":"2024-07-29 06:37:17","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":424272,"visible":true,"origin":"","legend":"","description":"","filename":"ImprovedYOLOv7BasedAlgorithmforDetectingDefectonSteelSurface.pdf","url":"https://assets-eu.researchsquare.com/files/rs-4680873/v1_covered_ca03f4aa-1242-4119-8cd1-626fed55119d.pdf"}],"financialInterests":"No competing interests reported.","formattedTitle":"Improved YOLOv7-Based Algorithm for Detecting Defect on Steel Surface","fulltext":[],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":false,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":false,"hideJournal":true,"highlight":"","institution":"","isAcceptedByJournal":false,"isAuthorSuppliedPdf":true,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":false,"isPdf":true,"isPdfUpToDate":true,"isWithdrawnOrRetracted":false,"journal":{"display":true,"email":"[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true},"keywords":"Steel surface defects, Deep learning, Target detection, YOLOv7-tiny","lastPublishedDoi":"10.21203/rs.3.rs-4680873/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-4680873/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003cp\u003eSteel in the production and processing process is easily affected by raw materials and processing environment, resulting in surface defects, affecting its corrosion resistance and service life. In addition, the defect detection model based on deep learning is relatively large, and it is difficult to meet the demand for real-time steel surface defect detection tasks. To address the above problems, this paper proposes an improved model YOLOv7-Lig based on the YOLOv7-tiny model. by introducing the CBAM attention mechanism, as well as using the Wise-IoU loss function to replace the original CIoU loss function, the network model is enhanced to pay attention to the key features of the input data, so that it can accurately capture the true boundary of the target, effectively reduces the problem of inadequate feature extraction. The CSP-Faster module is introduced in the BACKBONE, which reduces the number of parameters of the net work model and helps the network model to be deployed in resource-constrained environments. Then the CARAFE upsampling operator is introduced at the head, which effectively aggregates the context information and improves the accuracy of the upsampling. The YOLOv7-Lig model achieves a mAP of 85.1% and a detection speed of 82FPS, which proves that the model can improve the accuracy and detection speed of the model while reducing the number of parameters.\u003c/p\u003e","manuscriptTitle":"Improved YOLOv7-Based Algorithm for Detecting Defect on Steel Surface","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2024-07-29 06:21:10","doi":"10.21203/rs.3.rs-4680873/v1","editorialEvents":[{"type":"communityComments","content":0}],"status":"published","journal":{"display":true,"email":"[email protected]","identity":"researchsquare","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":true,"externalIdentity":"","sideBox":"","snPcode":"","submissionUrl":"/submission","title":"Research Square","twitterHandle":"researchsquare","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"","reportingPortfolio":"","inReviewEnabled":false,"inReviewRevisionsEnabled":true}}],"origin":"","ownerIdentity":"3ddd3ddd-3054-4b82-89fa-eb9fddf11d91","owner":[],"postedDate":"July 29th, 2024","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"posted","subjectAreas":[],"tags":[],"updatedAt":"2024-07-29T06:21:12+00:00","versionOfRecord":[],"versionCreatedAt":"2024-07-29 06:21:10","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v1","identity":"rs-4680873","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-4680873","identity":"rs-4680873","version":["v1"]},"buildId":"qtupq5eGEP_6zYnWcrvyt","isFallback":false,"isExperimentalCompile":false,"dynamicIds":[84888],"gssp":true,"scriptLoader":[]}

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2024) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00