Advancing HGV Detection with Limited Data: A Semantic Segmentation Framework Using SLiMe | 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 Advancing HGV Detection with Limited Data: A Semantic Segmentation Framework Using SLiMe Neda Darbandsari, Mo Saraee, Soheil Bazanjani, Taha Mansouri This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-7668213/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 Heavy Goods Vehicles (HGVs) segmentation is an essential enabler for intelligent transportation systems, vehicle accurate assessment, and traffic law enforcement. However, classical deep learning methods rely on dense pixel-level annotations, which are expensive and time-consuming to collect, particularly in cases involving specific HGV categories and rare traffic scenes. In this paper, we utilise a one-shot segmentation method, named SLiMe (Segment Like Me), which employs cross-attention and self-attention maps of pre-trained Stable Diffusion models to transfer the learned knowledge from a single-annotated reference to unseen target scenes. Compared to type-specific natural language object detectors such as YOLOv11 or generic segmenters such as SAM and CLIPSeg, SLiMe addresses class-specific segmentation with a single annotated example and eliminates any retraining or prompt generation effort.Our chosen approach demonstrates strong segmentation quality on buildings within various urban traffic scenes, outperforming baseline models in terms of mean IoU and pixel accuracy, particularly in challenging lighting conditions or occlusion scenarios. The results are encouraging for deploying SLiMe in transportation scenarios requiring limited annotation and fine-grained semantic understanding with a focus on real-time inference performance, highlighting the relevance for smart cities and autonomous vehicle perception systems. SLiMe semantic segmentation Stable Diffusion one-shot learning HGV detection traffic surveillance 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-7668213","acceptedTermsAndConditions":true,"allowDirectSubmit":true,"archivedVersions":[],"articleType":"Research Article","associatedPublications":[],"authors":[{"id":531547320,"identity":"5828e35c-405b-4939-8885-34d9a8bc535a","order_by":0,"name":"Neda Darbandsari","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAABLElEQVRIie2RPWuEMBiAI4Iu4qzD/YdAwFaQ+y0JgpO0g3BcaaFKwdturlD6GzwOjhsDgWaxdbVb5aBz4KDYqY3cTbVHHTvkgZCXNzzvBwFAofifQKCl8qLy4PkhBm/BMSNzfyjVUcHRWEXLRyhnQF/tr7bTC7tm76J9DCYlNVuBcXBpU70VWh79VPzUSNznKkzcJkL3ZBOhklrIwTjyC2ogR8vjwVTUgm6W66RsAAJkw4hUgEM6BiEFnhx1/ouCPrP8lpQ13wPy8CUVc9dh3CvmxwnFk1364rHsklIZAM85KFbfZTgYM2Z+VnFSNHEC8FOICmZ553IX6DIrcfDLYH3I79av2faaLGu+1rqb6WTJF7tG4ADafLESYhYOfkU/nekDPHhWKBQKxQi+AfqAewIYzT9yAAAAAElFTkSuQmCC","orcid":"","institution":"University of Salford","correspondingAuthor":true,"prefix":"","firstName":"Neda","middleName":"","lastName":"Darbandsari","suffix":""},{"id":531547321,"identity":"093d62bb-1e5b-40f3-ad01-cbe9ecc75ac2","order_by":1,"name":"Mo Saraee","email":"","orcid":"","institution":"University of Salford","correspondingAuthor":false,"prefix":"","firstName":"Mo","middleName":"","lastName":"Saraee","suffix":""},{"id":531547322,"identity":"befc2257-fe5f-4992-95bb-02b257597811","order_by":2,"name":"Soheil Bazanjani","email":"","orcid":"","institution":"University of Salford","correspondingAuthor":false,"prefix":"","firstName":"Soheil","middleName":"","lastName":"Bazanjani","suffix":""},{"id":531547323,"identity":"f9e339a6-fd60-4048-8aea-337c529161ef","order_by":3,"name":"Taha Mansouri","email":"","orcid":"","institution":"University of Salford","correspondingAuthor":false,"prefix":"","firstName":"Taha","middleName":"","lastName":"Mansouri","suffix":""}],"badges":[],"createdAt":"2025-09-21 17:38:11","currentVersionCode":1,"declarations":"","doi":"10.21203/rs.3.rs-7668213/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-7668213/v1","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":93974172,"identity":"c412147e-8c86-4d13-90e7-398af5d4b609","added_by":"auto","created_at":"2025-10-20 23:39:36","extension":"json","order_by":0,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":6392,"visible":true,"origin":"","legend":"","description":"","filename":"9c75e76a237b441d96e3494972694d04.json","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/5d0780a7f7db83a899ccfc79.json"},{"id":93974173,"identity":"87592bbe-1dfb-47f4-8e60-09b0c28247db","added_by":"auto","created_at":"2025-10-20 23:39:36","extension":"xml","order_by":1,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":95468,"visible":true,"origin":"","legend":"","description":"","filename":"9c75e76a237b441d96e3494972694d041enriched.xml","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/0f57447df2bc3a718529966a.xml"},{"id":93974388,"identity":"c19f149a-4364-44d9-8c8c-7142359bdf23","added_by":"auto","created_at":"2025-10-20 23:47:36","extension":"png","order_by":2,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":103270,"visible":true,"origin":"","legend":"","description":"","filename":"1.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/26b54ec8ff8c97124c66c37a.png"},{"id":93974390,"identity":"8cd4ff13-1cf7-4fde-9465-6194d3d76f14","added_by":"auto","created_at":"2025-10-20 23:47:37","extension":"png","order_by":3,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":4855675,"visible":true,"origin":"","legend":"","description":"","filename":"10.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/85c5969771b93b05963bf652.png"},{"id":93974174,"identity":"3325430e-94ab-43a3-a9ed-d0e6cad8024a","added_by":"auto","created_at":"2025-10-20 23:39:36","extension":"png","order_by":4,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":197164,"visible":true,"origin":"","legend":"","description":"","filename":"2.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/cdcfd6efc4a58684880ecb34.png"},{"id":93974389,"identity":"c3bb2d34-9eb4-4e03-90fe-d5d57fbf051d","added_by":"auto","created_at":"2025-10-20 23:47:36","extension":"png","order_by":5,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":154890,"visible":true,"origin":"","legend":"","description":"","filename":"3.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/222c4f20a67b82884df162da.png"},{"id":93974178,"identity":"eace8ed2-3154-40c8-a061-f1b7f689274f","added_by":"auto","created_at":"2025-10-20 23:39:37","extension":"png","order_by":6,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":808505,"visible":true,"origin":"","legend":"","description":"","filename":"4.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/518b11d8fbf24bf7af5f3acf.png"},{"id":93974396,"identity":"736cbc57-581a-4d82-a5ae-36b10cd4a0cf","added_by":"auto","created_at":"2025-10-20 23:47:37","extension":"png","order_by":7,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":5096767,"visible":true,"origin":"","legend":"","description":"","filename":"5.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/88529f3fc344da5d554b4892.png"},{"id":93974176,"identity":"2d8f1276-1272-426a-aa8a-54f5c591bf0f","added_by":"auto","created_at":"2025-10-20 23:39:36","extension":"png","order_by":8,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":96039,"visible":true,"origin":"","legend":"","description":"","filename":"6.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/69eb43c1027dc3c4c28ed85a.png"},{"id":93974188,"identity":"e17baeb8-f9bf-4e99-a6f4-1791e69118f9","added_by":"auto","created_at":"2025-10-20 23:39:37","extension":"png","order_by":9,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":690254,"visible":true,"origin":"","legend":"","description":"","filename":"7.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/d636fd0ecbe257c1c4563897.png"},{"id":93974639,"identity":"84b22375-6137-44c0-ba9b-550e8b1b5774","added_by":"auto","created_at":"2025-10-20 23:55:37","extension":"png","order_by":10,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":116542,"visible":true,"origin":"","legend":"","description":"","filename":"8.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/df74551fc2338330ae627c82.png"},{"id":93974395,"identity":"0879c465-a894-4bf5-8c6c-b67d3f3b9d2c","added_by":"auto","created_at":"2025-10-20 23:47:37","extension":"png","order_by":11,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":532092,"visible":true,"origin":"","legend":"","description":"","filename":"9.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/b8b58d7d73496ed1903eda3d.png"},{"id":93974181,"identity":"c71de870-592a-444c-83b3-a5474fcc8433","added_by":"auto","created_at":"2025-10-20 23:39:37","extension":"png","order_by":12,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1311689,"visible":true,"origin":"","legend":"","description":"","filename":"AIGenerated.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/0fb8f18e635e57438333d186.png"},{"id":93974199,"identity":"bcf5f05b-ad1f-4782-bfd4-5843c791df2d","added_by":"auto","created_at":"2025-10-20 23:39:37","extension":"pdf","order_by":13,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":18347430,"visible":true,"origin":"","legend":"","description":"","filename":"AdvancingHGVDetectionwithLimitedDataASemanticSegmentationFrameworkUsingSLiMe.pdf","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/6a7aaa716dc6c351ff3ea1bf.pdf"},{"id":93974394,"identity":"5cef37d3-cf6d-487e-9c7f-5260a014af0c","added_by":"auto","created_at":"2025-10-20 23:47:37","extension":"pdf","order_by":14,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":24356,"visible":true,"origin":"","legend":"","description":"","filename":"CoverLetter.pdf","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/fa7ab3887497ef5300cb301f.pdf"},{"id":93974754,"identity":"1ee44a09-5853-417b-8193-fadb389dc766","added_by":"auto","created_at":"2025-10-21 00:03:38","extension":"png","order_by":15,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":34197,"visible":true,"origin":"","legend":"","description":"","filename":"Picture1.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/b04c140ed8be10c234598443.png"},{"id":93974192,"identity":"72ea1448-a03a-41f7-a3e9-0b6bdfdf5829","added_by":"auto","created_at":"2025-10-20 23:39:37","extension":"png","order_by":16,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1245476,"visible":true,"origin":"","legend":"","description":"","filename":"Picture10.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/c2fa2accc0c08e27581b7098.png"},{"id":93974183,"identity":"4a3803d8-105f-4d42-90e5-ae096e19436c","added_by":"auto","created_at":"2025-10-20 23:39:37","extension":"png","order_by":17,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":77161,"visible":true,"origin":"","legend":"","description":"","filename":"Picture11.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/ddd4895b1f54b107710a8dbd.png"},{"id":93974195,"identity":"de37dafd-eea4-4162-828b-a3c9963ca9c7","added_by":"auto","created_at":"2025-10-20 23:39:37","extension":"png","order_by":18,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":67848,"visible":true,"origin":"","legend":"","description":"","filename":"Picture2.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/ca024a4bca0725b6dfd12609.png"},{"id":93974198,"identity":"59c4bd0e-ffb8-4e51-aa57-ccbdee813c17","added_by":"auto","created_at":"2025-10-20 23:39:37","extension":"png","order_by":19,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":171832,"visible":true,"origin":"","legend":"","description":"","filename":"Picture3.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/ba3c7de8b4149f002d94392e.png"},{"id":93974185,"identity":"97586bf4-fe04-4e99-a468-a5ff4a9bbbf4","added_by":"auto","created_at":"2025-10-20 23:39:37","extension":"png","order_by":20,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":197960,"visible":true,"origin":"","legend":"","description":"","filename":"Picture4.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/72b0dfae53fa3be2d2b33f97.png"},{"id":93974640,"identity":"3e7049fc-8a22-4d99-bc65-2f74d8096c78","added_by":"auto","created_at":"2025-10-20 23:55:37","extension":"png","order_by":21,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":63503,"visible":true,"origin":"","legend":"","description":"","filename":"Picture5.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/aa9f6e382a2ca860839d3939.png"},{"id":93974392,"identity":"f51f6161-02b4-4ae4-af6b-c3d7b46bd80a","added_by":"auto","created_at":"2025-10-20 23:47:37","extension":"png","order_by":22,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":56145,"visible":true,"origin":"","legend":"","description":"","filename":"Picture6.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/4d74c75dc525636c5c7e6c32.png"},{"id":93974194,"identity":"362281dd-ef54-452d-b135-047c7b944531","added_by":"auto","created_at":"2025-10-20 23:39:37","extension":"png","order_by":23,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":247940,"visible":true,"origin":"","legend":"","description":"","filename":"Picture7.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/03e5c075ee120d5289b37329.png"},{"id":93974401,"identity":"47588955-b2bd-43fa-8dcf-04a2a3a76332","added_by":"auto","created_at":"2025-10-20 23:47:38","extension":"png","order_by":24,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":289296,"visible":true,"origin":"","legend":"","description":"","filename":"Picture8.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/79f0fb3e5e3a09e6dce179c8.png"},{"id":93974641,"identity":"c0dbb11b-8bf6-4c2f-afed-344b5092fa74","added_by":"auto","created_at":"2025-10-20 23:55:37","extension":"png","order_by":25,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1560771,"visible":true,"origin":"","legend":"","description":"","filename":"Picture9.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/af2b6dabe56f92683b485e3d.png"},{"id":93974197,"identity":"0d818373-5a95-4cef-bed4-17e72de16b95","added_by":"auto","created_at":"2025-10-20 23:39:37","extension":"png","order_by":26,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":173101,"visible":true,"origin":"","legend":"","description":"","filename":"Screenshot20250718at18.50.00.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/51e0d3cf132e7cfc87dcf5ad.png"},{"id":93974215,"identity":"6a2d7f0f-34c0-4f2d-bd88-d4e4db0458e1","added_by":"auto","created_at":"2025-10-20 23:39:38","extension":"png","order_by":27,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":166713,"visible":true,"origin":"","legend":"","description":"","filename":"Screenshot20250718at18.50.31.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/cdbd71dfaf1fbcf1e187ddb8.png"},{"id":93974205,"identity":"75db65cd-0275-45f2-b12e-2cdc537dea9d","added_by":"auto","created_at":"2025-10-20 23:39:38","extension":"png","order_by":28,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":185349,"visible":true,"origin":"","legend":"","description":"","filename":"Screenshot20250718at18.50.48.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/725f402cd291efd273cbf2d2.png"},{"id":93974196,"identity":"223e961e-bcd7-4618-9223-2b0493330aba","added_by":"auto","created_at":"2025-10-20 23:39:37","extension":"eps","order_by":29,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":2890,"visible":true,"origin":"","legend":"","description":"","filename":"empty.eps","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/0efaf3470fd8ed1da1742bf7.eps"},{"id":93974642,"identity":"553fc725-931e-416f-8024-88dd090f20dd","added_by":"auto","created_at":"2025-10-20 23:55:37","extension":"eps","order_by":30,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":91593,"visible":true,"origin":"","legend":"","description":"","filename":"fig.eps","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/f27c4b20c350b419752ee0ff.eps"},{"id":93974200,"identity":"dbbb2292-f7fb-4f1e-b4de-e09bec8fe719","added_by":"auto","created_at":"2025-10-20 23:39:37","extension":"png","order_by":31,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":862424,"visible":true,"origin":"","legend":"","description":"","filename":"image.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/06e153eaa8a6f9b387f7402c.png"},{"id":93974229,"identity":"4b5a1a46-88e8-4eda-a024-d76fd041eb94","added_by":"auto","created_at":"2025-10-20 23:39:38","extension":"bst","order_by":32,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":146013,"visible":true,"origin":"","legend":"","description":"","filename":"snapacite.bst","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/9c586c9b52d63551ca9ea4ab.bst"},{"id":93974405,"identity":"8ca31afb-aeb5-4eb7-99e1-816f342f6e27","added_by":"auto","created_at":"2025-10-20 23:47:38","extension":"bst","order_by":33,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":29828,"visible":true,"origin":"","legend":"","description":"","filename":"snaps.bst","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/f66ec3a920002efd995cb656.bst"},{"id":93974202,"identity":"ccad523b-902f-43f5-a3af-d751bade7725","added_by":"auto","created_at":"2025-10-20 23:39:38","extension":"pdf","order_by":34,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":421391,"visible":true,"origin":"","legend":"","description":"","filename":"snarticle.pdf","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/c5e30207dbb41ab0ee235135.pdf"},{"id":93974193,"identity":"0b5cf160-059e-4547-b25a-b6622f1325f3","added_by":"auto","created_at":"2025-10-20 23:39:37","extension":"bst","order_by":35,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":35515,"visible":true,"origin":"","legend":"","description":"","filename":"snbasic.bst","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/4d0e66490731c2338b4b1354.bst"},{"id":93974407,"identity":"7de6d9bd-e562-4667-8ced-41390978a0bc","added_by":"auto","created_at":"2025-10-20 23:47:38","extension":"bst","order_by":36,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":33968,"visible":true,"origin":"","legend":"","description":"","filename":"snchicago.bst","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/787688482b70e3e4593de501.bst"},{"id":93974213,"identity":"abec154d-ca91-4df1-9c43-9b47315afefd","added_by":"auto","created_at":"2025-10-20 23:39:38","extension":"cls","order_by":37,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":55865,"visible":true,"origin":"","legend":"","description":"","filename":"snjnl.cls","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/6e356ffdcda681965697ac25.cls"},{"id":93974203,"identity":"6e802d20-96ae-4aa3-adab-06381d3163f2","added_by":"auto","created_at":"2025-10-20 23:39:38","extension":"bst","order_by":38,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":64023,"visible":true,"origin":"","legend":"","description":"","filename":"snmathphysay.bst","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/23c2d5418b7fc502535c9dd5.bst"},{"id":93974399,"identity":"5294e7b1-6fbb-4a9a-b8ef-58f8e0ebab2a","added_by":"auto","created_at":"2025-10-20 23:47:37","extension":"bst","order_by":39,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":64166,"visible":true,"origin":"","legend":"","description":"","filename":"snmathphysnum.bst","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/6408c2991475f0cacc3689f0.bst"},{"id":93974201,"identity":"b106b4b7-64d1-413d-9fa4-c42d92b40856","added_by":"auto","created_at":"2025-10-20 23:39:37","extension":"bst","order_by":40,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":37333,"visible":true,"origin":"","legend":"","description":"","filename":"snnature.bst","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/f537610362856a3c15dc2f93.bst"},{"id":93974211,"identity":"12e3326e-00d7-44e6-a660-28db41c91a4b","added_by":"auto","created_at":"2025-10-20 23:39:38","extension":"bst","order_by":41,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":39951,"visible":true,"origin":"","legend":"","description":"","filename":"snvancouveray.bst","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/456066a36ff2f2b8c6413504.bst"},{"id":93974646,"identity":"91b4c507-80c1-4a9a-885e-91c1ba293664","added_by":"auto","created_at":"2025-10-20 23:55:38","extension":"bst","order_by":42,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":40758,"visible":true,"origin":"","legend":"","description":"","filename":"snvancouvernum.bst","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/4cd867dc524c760c6557167a.bst"},{"id":93974406,"identity":"12958532-c592-4d99-a5f3-6a10aa211cac","added_by":"auto","created_at":"2025-10-20 23:47:38","extension":"pdf","order_by":43,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":418495,"visible":true,"origin":"","legend":"","description":"","filename":"usermanual.pdf","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/fc7c51d62b492a4b9fb7a9c6.pdf"},{"id":93974400,"identity":"ac5b9dc9-536e-4aba-aa99-2841b0a71461","added_by":"auto","created_at":"2025-10-20 23:47:38","extension":"png","order_by":55,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":27902,"visible":true,"origin":"","legend":"","description":"","filename":"OnlinePicture1.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/1b33f3ee66fdcd9337c1fa1b.png"},{"id":93974219,"identity":"cf7c5277-7030-4e13-a84c-672b5f91fec1","added_by":"auto","created_at":"2025-10-20 23:39:38","extension":"png","order_by":56,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":856440,"visible":true,"origin":"","legend":"","description":"","filename":"OnlinePicture10.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/5ca695bc195b927fc363afce.png"},{"id":93974645,"identity":"4523d39a-ed7b-4cf7-acdf-7bf28d303500","added_by":"auto","created_at":"2025-10-20 23:55:38","extension":"png","order_by":57,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":67168,"visible":true,"origin":"","legend":"","description":"","filename":"OnlinePicture11.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/5f1982ea36d830b0ee3e4f33.png"},{"id":93974225,"identity":"114d707f-06ad-407f-a5de-da1f5ebed296","added_by":"auto","created_at":"2025-10-20 23:39:38","extension":"png","order_by":58,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":56811,"visible":true,"origin":"","legend":"","description":"","filename":"OnlinePicture2.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/ac78e02fa5f1319e78f3320b.png"},{"id":93974207,"identity":"b0158b08-a390-4de7-9c5e-7759025ece9b","added_by":"auto","created_at":"2025-10-20 23:39:38","extension":"png","order_by":59,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":120161,"visible":true,"origin":"","legend":"","description":"","filename":"OnlinePicture3.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/e45b3dd2f6aede12dc3e9ae4.png"},{"id":93974224,"identity":"8e2bedf4-5823-433a-a797-22b1c140d718","added_by":"auto","created_at":"2025-10-20 23:39:38","extension":"png","order_by":60,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":141955,"visible":true,"origin":"","legend":"","description":"","filename":"OnlinePicture4.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/b1c53766827c778c75150036.png"},{"id":93974227,"identity":"6a2a5ad7-1fbb-4e47-b580-7767770ab37e","added_by":"auto","created_at":"2025-10-20 23:39:38","extension":"png","order_by":61,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":54253,"visible":true,"origin":"","legend":"","description":"","filename":"OnlinePicture5.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/dd1dc921551942c5ce420b7b.png"},{"id":93974217,"identity":"8de70e68-bb40-430d-97a0-8589b307766a","added_by":"auto","created_at":"2025-10-20 23:39:38","extension":"png","order_by":62,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":46215,"visible":true,"origin":"","legend":"","description":"","filename":"OnlinePicture6.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/23c03b054e3d723def8d178a.png"},{"id":93974221,"identity":"f9bf828f-2f33-4caa-b58b-ead99d611b93","added_by":"auto","created_at":"2025-10-20 23:39:38","extension":"png","order_by":63,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":182000,"visible":true,"origin":"","legend":"","description":"","filename":"OnlinePicture7.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/f0eb9981930688db59266b37.png"},{"id":93974647,"identity":"a4d1b9f9-74eb-4533-8b09-796c3724a4f2","added_by":"auto","created_at":"2025-10-20 23:55:38","extension":"png","order_by":64,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":195417,"visible":true,"origin":"","legend":"","description":"","filename":"OnlinePicture8.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/15180a5d70fa79f49d914f83.png"},{"id":93974222,"identity":"e35af898-d4bc-4038-8bcf-a9c5f484cc64","added_by":"auto","created_at":"2025-10-20 23:39:38","extension":"png","order_by":65,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":1078553,"visible":true,"origin":"","legend":"","description":"","filename":"OnlinePicture9.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/b7d5b330afb1dc01f679b1e6.png"},{"id":93974230,"identity":"7e1a4076-6ce0-47cc-a707-c9bcc69399c3","added_by":"auto","created_at":"2025-10-20 23:39:39","extension":"png","order_by":66,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":121197,"visible":true,"origin":"","legend":"","description":"","filename":"OnlineScreenshot20250718at18.50.00.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/b296a4fc2bb5b07990201edf.png"},{"id":93974228,"identity":"56c54d16-b8ce-4af4-bf12-628928cb93f3","added_by":"auto","created_at":"2025-10-20 23:39:38","extension":"png","order_by":67,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":99353,"visible":true,"origin":"","legend":"","description":"","filename":"OnlineScreenshot20250718at18.50.31.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/ca99d6b9928cc0bb8c9e0392.png"},{"id":93974231,"identity":"934b26e9-5504-4888-89aa-e5d72503f9e2","added_by":"auto","created_at":"2025-10-20 23:39:39","extension":"png","order_by":68,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":108786,"visible":true,"origin":"","legend":"","description":"","filename":"OnlineScreenshot20250718at18.50.48.png","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/173406f713aedbab23d69187.png"},{"id":93974643,"identity":"4593966f-89c3-48eb-809f-fb6fa8ae7e9b","added_by":"auto","created_at":"2025-10-20 23:55:38","extension":"xml","order_by":70,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":105883,"visible":true,"origin":"","legend":"","description":"","filename":"9c75e76a237b441d96e3494972694d041structuring.xml","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/2641bfa08b570a260f572205.xml"},{"id":93974409,"identity":"004991bf-6e48-4dd4-8e41-7c04c76b9047","added_by":"auto","created_at":"2025-10-20 23:47:38","extension":"html","order_by":71,"title":"","display":"","copyAsset":false,"role":"acdc-reference","size":118792,"visible":true,"origin":"","legend":"","description":"","filename":"earlyproof.html","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1/728ad8604a3f6d2f3970352c.html"},{"id":101752746,"identity":"369f2aa0-f00b-4b25-8c1a-df16d42ec90f","added_by":"auto","created_at":"2026-02-03 10:29:28","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":1784835,"visible":true,"origin":"","legend":"","description":"","filename":"AdvancingHGVDetectionwithLimitedDataASemanticSegmentationFrameworkUsingSLiMe.pdf","url":"https://assets-eu.researchsquare.com/files/rs-7668213/v1_covered_198ae714-ed3b-482d-a4bd-81b258a4b0e6.pdf"}],"financialInterests":"No competing interests reported.","formattedTitle":"Advancing HGV Detection with Limited Data: A Semantic Segmentation Framework Using SLiMe","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":"SLiMe, semantic segmentation, Stable Diffusion, one-shot learning, HGV detection, traffic surveillance","lastPublishedDoi":"10.21203/rs.3.rs-7668213/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-7668213/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003cp\u003eHeavy Goods Vehicles (HGVs) segmentation is an essential enabler for intelligent transportation systems, vehicle accurate assessment, and traffic law enforcement. However, classical deep learning methods rely on dense pixel-level annotations, which are expensive and time-consuming to collect, particularly in cases involving specific HGV categories and rare traffic scenes. In this paper, we utilise a one-shot segmentation method, named SLiMe (Segment Like Me), which employs cross-attention and self-attention maps of pre-trained Stable Diffusion models to transfer the learned knowledge from a single-annotated reference to unseen target scenes. Compared to type-specific natural language object detectors such as YOLOv11 or generic segmenters such as SAM and CLIPSeg, SLiMe addresses class-specific segmentation with a single annotated example and eliminates any retraining or prompt generation effort.Our chosen approach demonstrates strong segmentation quality on buildings within various urban traffic scenes, outperforming baseline models in terms of mean IoU and pixel accuracy, particularly in challenging lighting conditions or occlusion scenarios. The results are encouraging for deploying SLiMe in transportation scenarios requiring limited annotation and fine-grained semantic understanding with a focus on real-time inference performance, highlighting the relevance for smart cities and autonomous vehicle perception systems.\u003c/p\u003e","manuscriptTitle":"Advancing HGV Detection with Limited Data: A Semantic Segmentation Framework Using SLiMe","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2025-10-20 23:39:31","doi":"10.21203/rs.3.rs-7668213/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":"17c1034e-2665-4888-8d5b-2c53892e9fce","owner":[],"postedDate":"October 20th, 2025","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"posted","subjectAreas":[],"tags":[],"updatedAt":"2026-01-31T10:56:03+00:00","versionOfRecord":[],"versionCreatedAt":"2025-10-20 23:39:31","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v1","identity":"rs-7668213","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-7668213","identity":"rs-7668213","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.