A cross-condition benchmark and interpretability analysis for vision-based nugget size prediction in resistance spot welding | 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 A cross-condition benchmark and interpretability analysis for vision-based nugget size prediction in resistance spot welding WenJie WANG, Qiang SONG, YangTian LIN, WenLong XU, ChengQing ZHANG, and 3 more This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-8194392/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 Resistance spot welding (RSW) demands reliable quality assessment, yet traditional inspection methods are often destructive, costly, or inefficient. While computer vision has been applied to RSW, existing studies are predominantly limited to the classification of surface defects. This study represents a pioneering attempt to achieve low-cost, non-destructive quality inspection by performing end-to-end regression prediction of internal nugget size directly from post-weld surface images. We constructed a comprehensive dataset spanning multiple sheet stack-ups and four typical fit-up conditions—standard, initial gap, electrode angle, and edge proximity. Five mainstream Convolutional Neural Network (CNN) architectures were trained and systematically evaluated to assess the potential of surface-to-internal quality mapping. The results highlight two core findings. First, regarding feasibility, the study demonstrates that advanced vision models combined with complete surface imagery can achieve practical prediction accuracy (R² >0.8) on in-distribution data, confirming that weld surface morphology contains physical cues highly predictive of nugget growth. Second, the study explicitly reveals and quantitatively analyzes a critical challenge: model generalization. All models exhibited severe performance degradation when the test distribution deviated from the training conditions, specifically under abnormal fit-up conditions and unseen material stack-ups. Grad-CAM interpretability analysis corroborates these trends, showing that while effective predictions rely on indentation borders and oxidation patterns, models struggling with generalization over-attend to background artifacts. This work clarifies both the practical applicability and the generalization boundaries of surface-vision-based regression, suggesting that future work must focus on domain adaptation techniques and data augmentation strategies to overcome distribution shifts in diverse industrial environments. Resistance spot welding Surface recognition Convolutional neural network Generalization ability Model interpretation Full Text 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-8194392","acceptedTermsAndConditions":true,"allowDirectSubmit":true,"archivedVersions":[],"articleType":"Research Article","associatedPublications":[],"authors":[{"id":551582660,"identity":"f8b9752a-b68f-45a5-8f06-efdfbc678a93","order_by":0,"name":"WenJie WANG","email":"","orcid":"","institution":"Shanghai Jiao Tong University","correspondingAuthor":false,"prefix":"","firstName":"WenJie","middleName":"","lastName":"WANG","suffix":""},{"id":551582661,"identity":"0a3ebc47-6e32-4f88-ac2b-340ed073cc48","order_by":1,"name":"Qiang SONG","email":"","orcid":"","institution":"Shanghai Jiao Tong University","correspondingAuthor":false,"prefix":"","firstName":"Qiang","middleName":"","lastName":"SONG","suffix":""},{"id":551582662,"identity":"9152b09a-491e-428d-a6ed-1a2f39671851","order_by":2,"name":"YangTian LIN","email":"","orcid":"","institution":"Shanghai Jiao Tong University","correspondingAuthor":false,"prefix":"","firstName":"YangTian","middleName":"","lastName":"LIN","suffix":""},{"id":551582663,"identity":"e8400f85-4238-4f62-8444-0b3f9b99e207","order_by":3,"name":"WenLong XU","email":"","orcid":"","institution":"Shanghai Jiao Tong University","correspondingAuthor":false,"prefix":"","firstName":"WenLong","middleName":"","lastName":"XU","suffix":""},{"id":551582664,"identity":"2dfe665a-2616-4e98-b393-7f70eea92057","order_by":4,"name":"ChengQing ZHANG","email":"","orcid":"","institution":"Seres Group Co., Ltd","correspondingAuthor":false,"prefix":"","firstName":"ChengQing","middleName":"","lastName":"ZHANG","suffix":""},{"id":551582665,"identity":"4ae21097-e2c8-4773-bee7-b76961e0eeb7","order_by":5,"name":"SiZhe NIU","email":"","orcid":"","institution":"Shandong University of Technology","correspondingAuthor":false,"prefix":"","firstName":"SiZhe","middleName":"","lastName":"NIU","suffix":""},{"id":551582666,"identity":"a7ee4982-8a63-46af-b341-40f2448315bf","order_by":6,"name":"Yu-Jun Xia","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAABEElEQVRIiWNgGAWjYHCCBGkgIWffzHzwAQMPWMSAGC0GxgbsbckGDDwGRGlhAGlJNOA5YyYBVY1fi8GNhIe3C379STCXyDGr/CHzJ7GBvXmbBEPNHZxaJGckJFvP7DPIs5yRVnabh8cgsYHnWJkEw7FnOLXwSySkSfP2GBQz3EjedpsBpAVonQRjw2GcWtigWhIbbiSYFf4AaZF/g18L2BaeHwaJG84cMWMAO0yCB78WyZ4HQL80GBtLtrclS/PwGBu38aQVWyQcw63F4HhO4u2CP3Jy/MzMBz/+7JGT7Wc/vPHGhxrcWhgEchIYGNugHMYeoO9AjATcGoCeOX6AgeEPjPcDn9JRMApGwSgYqQAA5OpU3Mfh3oYAAAAASUVORK5CYII=","orcid":"https://orcid.org/0000-0001-6729-8022","institution":"Shanghai Jiao Tong University School of Mechanical Engineering","correspondingAuthor":true,"prefix":"","firstName":"Yu-Jun","middleName":"","lastName":"Xia","suffix":""},{"id":551582667,"identity":"a51a1f9a-cdfa-48c2-a603-8e3ed0b56d85","order_by":7,"name":"YongBing LI","email":"","orcid":"https://orcid.org/0000-0002-4081-3386","institution":"Shanghai Jiao Tong University","correspondingAuthor":false,"prefix":"","firstName":"YongBing","middleName":"","lastName":"LI","suffix":""}],"badges":[],"createdAt":"2025-11-24 14:28:17","currentVersionCode":1,"declarations":"","doi":"10.21203/rs.3.rs-8194392/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-8194392/v1","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":97106080,"identity":"08f9a5ea-3532-48cc-af19-43f03a6f712c","added_by":"auto","created_at":"2025-12-01 05:06:32","extension":"xml","order_by":1,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":13081,"visible":true,"origin":"","legend":"","description":"","filename":"witwWITWD2501020.xml","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/dd499da431c72e082816a652.xml"},{"id":97106079,"identity":"697f74ac-8bfc-45db-acca-e66582e34673","added_by":"auto","created_at":"2025-12-01 05:06:32","extension":"xml","order_by":2,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":939,"visible":true,"origin":"","legend":"","description":"","filename":"WITWD250102017832.go.xml","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/2655f58892ffe0babcbaa4d4.xml"},{"id":97106081,"identity":"b9087560-6777-412d-86ca-da9eb15c293d","added_by":"auto","created_at":"2025-12-01 05:06:32","extension":"xml","order_by":3,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":830,"visible":true,"origin":"","legend":"","description":"","filename":"WITWD2501020Import.xml","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/7e06028e91a0af350ddb4450.xml"},{"id":97139658,"identity":"aa2ee8ba-7adf-4a3e-819f-acd8b989d6a0","added_by":"auto","created_at":"2025-12-01 10:01:34","extension":"xml","order_by":4,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":143603,"visible":true,"origin":"","legend":"","description":"","filename":"WITWD25010200enriched.xml","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/7892829b2b2931f09cc5d76d.xml"},{"id":97140490,"identity":"26e2842c-b86c-4fbe-b212-61f5ccfcf3bb","added_by":"auto","created_at":"2025-12-01 10:05:06","extension":"jpeg","order_by":5,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":275733,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage1.jpeg","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/80a6fbe0d94cbf35342691f2.jpeg"},{"id":97106084,"identity":"2e86e275-b36e-4148-890c-e11280b4e1fe","added_by":"auto","created_at":"2025-12-01 05:06:32","extension":"jpeg","order_by":6,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":911553,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage10.jpeg","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/4f850ca395fe4b7a2d78f735.jpeg"},{"id":97106092,"identity":"e163307c-411c-4dbc-abc8-fce5183fda86","added_by":"auto","created_at":"2025-12-01 05:06:32","extension":"jpeg","order_by":7,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":6946983,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage11.jpeg","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/ea17d1bfa368bf2de6d34465.jpeg"},{"id":97106089,"identity":"c872de24-47c6-4ef8-b0b9-962f9dab94bd","added_by":"auto","created_at":"2025-12-01 05:06:32","extension":"jpeg","order_by":8,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":777372,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage2.jpeg","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/7877a088a91d9e47b4a388e0.jpeg"},{"id":97106082,"identity":"a8926bdc-1c67-43d1-9695-2ac73da08ba9","added_by":"auto","created_at":"2025-12-01 05:06:32","extension":"png","order_by":9,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":22993,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage3.png","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/8728684461078de2ef81e684.png"},{"id":97106099,"identity":"3d1c1668-8278-47e4-af7c-20d374cc834f","added_by":"auto","created_at":"2025-12-01 05:06:32","extension":"emf","order_by":10,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":2849360,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage4.emf","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/c9179b05d5e2f7d1dda03ce6.emf"},{"id":97106088,"identity":"22c2238c-41c6-49b8-a471-902a89e36c3d","added_by":"auto","created_at":"2025-12-01 05:06:32","extension":"jpeg","order_by":11,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":673103,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage5.jpeg","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/e7c6afad8c1464eb8c1a2390.jpeg"},{"id":97106085,"identity":"29b2429e-fc09-42db-9cc1-29e4ccf314cf","added_by":"auto","created_at":"2025-12-01 05:06:32","extension":"jpeg","order_by":12,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":577218,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage6.jpeg","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/3913711b5ea05ffeb3d0174a.jpeg"},{"id":97106095,"identity":"e7c69d75-8142-42a9-8df4-44294b8661b0","added_by":"auto","created_at":"2025-12-01 05:06:32","extension":"jpeg","order_by":13,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":127512,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage7.jpeg","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/cbedfb3b1be614135a033faf.jpeg"},{"id":97106104,"identity":"a0e9043c-ceea-4ab2-bb81-026d1fc17675","added_by":"auto","created_at":"2025-12-01 05:06:32","extension":"jpeg","order_by":14,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1224446,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage8.jpeg","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/e51151232417469ad83378ba.jpeg"},{"id":97141579,"identity":"7f639d15-b996-42a3-a7d4-60afa83c10ac","added_by":"auto","created_at":"2025-12-01 10:06:50","extension":"jpeg","order_by":15,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":478140,"visible":true,"origin":"","legend":"","description":"","filename":"floatimage9.jpeg","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/faa779a3f98605aca5f26402.jpeg"},{"id":97141150,"identity":"7c4e3335-567f-4d5c-bcec-758c222207bb","added_by":"auto","created_at":"2025-12-01 10:06:19","extension":"wmf","order_by":16,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":710,"visible":true,"origin":"","legend":"","description":"","filename":"image10.wmf","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/c20f7032dbd5d657d805989c.wmf"},{"id":97142093,"identity":"d674a778-f35c-41b2-b869-581ad7395537","added_by":"auto","created_at":"2025-12-01 10:07:20","extension":"wmf","order_by":17,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":750,"visible":true,"origin":"","legend":"","description":"","filename":"image11.wmf","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/6654ac52608ba3445de667f7.wmf"},{"id":97139731,"identity":"e8810c1d-5b1b-450b-97cb-f2df4ccca708","added_by":"auto","created_at":"2025-12-01 10:02:07","extension":"wmf","order_by":18,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":2848,"visible":true,"origin":"","legend":"","description":"","filename":"image12.wmf","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/052968ad131a02b7b933643f.wmf"},{"id":97106091,"identity":"3eddb3a0-188c-419a-a843-ceb4fda91eb1","added_by":"auto","created_at":"2025-12-01 05:06:32","extension":"wmf","order_by":19,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":2166,"visible":true,"origin":"","legend":"","description":"","filename":"image5.wmf","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/0dfa3d4a0d6fc24b34d68a49.wmf"},{"id":97106093,"identity":"56c15d4f-6dc1-4b7e-868e-846a9fd04b0a","added_by":"auto","created_at":"2025-12-01 05:06:32","extension":"wmf","order_by":20,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":756,"visible":true,"origin":"","legend":"","description":"","filename":"image6.wmf","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/baae04e68a4e6e36e459fd5f.wmf"},{"id":97140167,"identity":"7ed49135-e7bc-4250-b7ba-3777161540a9","added_by":"auto","created_at":"2025-12-01 10:03:59","extension":"wmf","order_by":21,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":870,"visible":true,"origin":"","legend":"","description":"","filename":"image7.wmf","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/6c9121a72c9cda80855c95b8.wmf"},{"id":97141782,"identity":"6d79929f-59bb-4cc6-8ee5-d794638e9004","added_by":"auto","created_at":"2025-12-01 10:07:00","extension":"wmf","order_by":22,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1892,"visible":true,"origin":"","legend":"","description":"","filename":"image8.wmf","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/353f10586817c564be8a4414.wmf"},{"id":97106094,"identity":"598551bf-c305-48c6-876f-02b7389b8020","added_by":"auto","created_at":"2025-12-01 05:06:32","extension":"wmf","order_by":23,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":3418,"visible":true,"origin":"","legend":"","description":"","filename":"image9.wmf","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/2486f555a7076751fa6df0b0.wmf"},{"id":97140863,"identity":"56622d84-d42a-43b6-bed1-8f5c4210aafc","added_by":"auto","created_at":"2025-12-01 10:05:54","extension":"png","order_by":24,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":47243,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage1.png","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/85130cf7dcedfb6c66e3e59d.png"},{"id":97106117,"identity":"02b37ee4-6260-4c7a-8071-1c57dddfc341","added_by":"auto","created_at":"2025-12-01 05:06:33","extension":"png","order_by":25,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":211517,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage10.png","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/1ff04f7749cd1d205b2f93d8.png"},{"id":97106106,"identity":"7283daca-8f72-4b1a-9e15-2ffcd55f7bd1","added_by":"auto","created_at":"2025-12-01 05:06:33","extension":"png","order_by":26,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":6185821,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage11.png","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/a90fa5483e510e7ab26c0845.png"},{"id":97140544,"identity":"b045279c-85df-453a-9ab2-308d40dc8221","added_by":"auto","created_at":"2025-12-01 10:05:13","extension":"png","order_by":27,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":488646,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage2.png","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/eeae584c3ee1571727f382a5.png"},{"id":97141072,"identity":"7984aa6f-6af7-4522-abc6-343f0b4a528b","added_by":"auto","created_at":"2025-12-01 10:06:11","extension":"png","order_by":28,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":13523,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage3.png","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/61d7eb8f7e55c33b94d57070.png"},{"id":97106108,"identity":"bab7cbad-a076-428b-bb59-34d0421601d7","added_by":"auto","created_at":"2025-12-01 05:06:33","extension":"png","order_by":29,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":70583,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage4.png","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/fe930ea07dec5fd09119a79b.png"},{"id":97106113,"identity":"0e8f8e67-4ca2-4dcc-8392-7a9f02c1ba38","added_by":"auto","created_at":"2025-12-01 05:06:33","extension":"png","order_by":30,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":119929,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage5.png","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/ce02e1266cce0add729d7d55.png"},{"id":97106111,"identity":"a004b090-564b-4110-9268-a4ee35738c28","added_by":"auto","created_at":"2025-12-01 05:06:33","extension":"png","order_by":31,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":134655,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage6.png","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/04149143b2fb4b2bde91d8e9.png"},{"id":97139677,"identity":"9781c71d-c017-416b-a9a4-d3b38e247ff0","added_by":"auto","created_at":"2025-12-01 10:01:35","extension":"png","order_by":32,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":58551,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage7.png","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/0b22cc8a3f04a228be4cc20a.png"},{"id":97106100,"identity":"2bae7cec-aaa9-4b37-8d66-5dfe8008b61c","added_by":"auto","created_at":"2025-12-01 05:06:32","extension":"png","order_by":33,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":257913,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage8.png","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/b1574934220cd4be549cb827.png"},{"id":97106120,"identity":"ba7f3eb3-2b89-492c-916f-740317de215c","added_by":"auto","created_at":"2025-12-01 05:06:33","extension":"png","order_by":34,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":101936,"visible":true,"origin":"","legend":"","description":"","filename":"Onlinefloatimage9.png","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/5b3aea30d1a8784fed5105b2.png"},{"id":97140857,"identity":"58f4dc9e-6919-402a-9b74-1bb4872e5af5","added_by":"auto","created_at":"2025-12-01 10:05:53","extension":"png","order_by":35,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":260,"visible":true,"origin":"","legend":"","description":"","filename":"Onlineimage10.png","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/ee87ced837e0a55225cbd74b.png"},{"id":97106096,"identity":"09d66fbf-b52d-4d32-8ce6-2878e9c6d384","added_by":"auto","created_at":"2025-12-01 05:06:32","extension":"png","order_by":36,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":314,"visible":true,"origin":"","legend":"","description":"","filename":"Onlineimage11.png","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/7d974cb864d3fe4fe680d237.png"},{"id":97106097,"identity":"0847467f-1d7c-4de6-9cbe-8a0195f52f70","added_by":"auto","created_at":"2025-12-01 05:06:32","extension":"png","order_by":37,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1677,"visible":true,"origin":"","legend":"","description":"","filename":"Onlineimage12.png","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/cf84511951eb19df41d5299f.png"},{"id":97142715,"identity":"ea6f65f8-19e5-4058-9462-445894cc4ee2","added_by":"auto","created_at":"2025-12-01 10:07:54","extension":"png","order_by":38,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1165,"visible":true,"origin":"","legend":"","description":"","filename":"Onlineimage5.png","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/611f07e55c344ff9693011f0.png"},{"id":97106114,"identity":"68a4f6ea-bdd5-479c-8178-e13423057154","added_by":"auto","created_at":"2025-12-01 05:06:33","extension":"png","order_by":39,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":280,"visible":true,"origin":"","legend":"","description":"","filename":"Onlineimage6.png","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/22d0f986e99b1cdd5c7aa98d.png"},{"id":97141010,"identity":"29ae4991-6c00-4d4e-af85-ff4c2eee7af5","added_by":"auto","created_at":"2025-12-01 10:06:07","extension":"png","order_by":40,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":303,"visible":true,"origin":"","legend":"","description":"","filename":"Onlineimage7.png","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/6f62b7d7cd1d7c75eb204eae.png"},{"id":97106112,"identity":"1b75e201-e44e-46f2-8a97-1b11928c2ff2","added_by":"auto","created_at":"2025-12-01 05:06:33","extension":"png","order_by":41,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1052,"visible":true,"origin":"","legend":"","description":"","filename":"Onlineimage8.png","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/8c12470c0b0261b1bc2a4008.png"},{"id":97106101,"identity":"73801437-18b3-4e95-b87d-02431671a821","added_by":"auto","created_at":"2025-12-01 05:06:32","extension":"png","order_by":42,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1554,"visible":true,"origin":"","legend":"","description":"","filename":"Onlineimage9.png","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/95a53af7ae6af335f1767b49.png"},{"id":97106107,"identity":"dc85dacc-ab59-410f-b9ba-133bb7e3ffda","added_by":"auto","created_at":"2025-12-01 05:06:33","extension":"xml","order_by":43,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":144090,"visible":true,"origin":"","legend":"","description":"","filename":"WITWD25010200structuring.xml","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/c3791b5084d7afeeb166f434.xml"},{"id":97141749,"identity":"c849fc04-8c38-4a65-b969-9205093e31dc","added_by":"auto","created_at":"2025-12-01 10:06:56","extension":"html","order_by":44,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":150622,"visible":true,"origin":"","legend":"","description":"","filename":"earlyproof.html","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1/2dec437ebdce0c6ed5a03388.html"},{"id":101943449,"identity":"7f339bcc-6d36-4d19-8d01-f04bfcc955f1","added_by":"auto","created_at":"2026-02-05 09:42:00","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":1825738,"visible":true,"origin":"","legend":"","description":"","filename":"Manuscriptsubmitfinal.pdf","url":"https://assets-eu.researchsquare.com/files/rs-8194392/v1_covered_e8a46e14-3848-4d07-ab26-7d60e0f1ea3f.pdf"}],"financialInterests":"","formattedTitle":"A cross-condition benchmark and interpretability analysis for vision-based nugget size prediction in resistance spot welding","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":"Resistance spot welding, Surface recognition, Convolutional neural network, Generalization ability, Model interpretation","lastPublishedDoi":"10.21203/rs.3.rs-8194392/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-8194392/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003cp\u003eResistance spot welding (RSW) demands reliable quality assessment, yet traditional inspection methods are often destructive, costly, or inefficient. While computer vision has been applied to RSW, existing studies are predominantly limited to the classification of surface defects. This study represents a pioneering attempt to achieve low-cost, non-destructive quality inspection by performing end-to-end regression prediction of internal nugget size directly from post-weld surface images. We constructed a comprehensive dataset spanning multiple sheet stack-ups and four typical fit-up conditions\u0026mdash;standard, initial gap, electrode angle, and edge proximity. Five mainstream Convolutional Neural Network (CNN) architectures were trained and systematically evaluated to assess the potential of surface-to-internal quality mapping. The results highlight two core findings. First, regarding feasibility, the study demonstrates that advanced vision models combined with complete surface imagery can achieve practical prediction accuracy (R\u0026sup2; \u0026gt;0.8) on in-distribution data, confirming that weld surface morphology contains physical cues highly predictive of nugget growth. Second, the study explicitly reveals and quantitatively analyzes a critical challenge: model generalization. All models exhibited severe performance degradation when the test distribution deviated from the training conditions, specifically under abnormal fit-up conditions and unseen material stack-ups. Grad-CAM interpretability analysis corroborates these trends, showing that while effective predictions rely on indentation borders and oxidation patterns, models struggling with generalization over-attend to background artifacts. This work clarifies both the practical applicability and the generalization boundaries of surface-vision-based regression, suggesting that future work must focus on domain adaptation techniques and data augmentation strategies to overcome distribution shifts in diverse industrial environments.\u003c/p\u003e","manuscriptTitle":"A cross-condition benchmark and interpretability analysis for vision-based nugget size prediction in resistance spot welding","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2025-12-01 05:06:27","doi":"10.21203/rs.3.rs-8194392/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":"e2b9fe91-8041-4629-b625-c66c530d5087","owner":[],"postedDate":"December 1st, 2025","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"posted","subjectAreas":[],"tags":[],"updatedAt":"2026-02-05T05:56:08+00:00","versionOfRecord":[],"versionCreatedAt":"2025-12-01 05:06:27","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v1","identity":"rs-8194392","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-8194392","identity":"rs-8194392","version":["v1"]},"buildId":"8U1c8b4HqxoKbykW_rLl7","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.