Attack Detection Model for BCoT based on Contrastive Variational Autoencoder and Metric Learning

preprint OA: closed
Full text JSON View at publisher
Full text 13,608 characters · extracted from preprint-html · click to expand
Attack Detection Model for BCoT based on Contrastive Variational Autoencoder and Metric Learning | 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 Attack Detection Model for BCoT based on Contrastive Variational Autoencoder and Metric Learning Chunwang Wu, Xiaolei Liu, Kangyi Ding, Bangzhou Xin, Jiazhong Lu, and 2 more This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-4126223/v1 This work is licensed under a CC BY 4.0 License Status: Published Journal Publication published 02 Aug, 2024 Read the published version in Journal of Cloud Computing → Version 1 posted 7 You are reading this latest preprint version Abstract With development of blockchain technology, clouding computing and Internet of Things (IoT), blockchain and cloud of things (BCoT) has become development tendency. But the security has become the most development hinder of BCoT. Attack detection model is a crucial part of attack revelation mechanism for BCoT. As a consequence, attack detection model has received more concerned. Due to the great diversity and variation of network attacks aiming to BCoT, tradition attack detection models are not suitable for BCoT. In this paper, we propose a novel attack detection model for BCoT, denoted as cVAE-DML. The novel model is based on contrastive variational autoencoder (cVAE) and deep metric learning (DML). By training the cVAE, the proposed model generates private features for attack visiting information as well as shared features between attack visiting information and normal visiting information. Based on those generated features, the proposed model can generate representative new samples to balance the training dataset. At last, the decoder of cVAE is connected to the deep metric learning network to detect attack aiming to BCoT. The efficiency of cVAE-DML is verified using the CIC-IDS 2017 dataset and CSE-CIC-IDS 2018 dataset. The results show that cVAE-DML can improve attack detection efficiency even under the condition of unbalanced samples. attack detection BCoT metric learning contrastive variational autoencoder oversample Full Text Additional Declarations No competing interests reported. Cite Share Download PDF Status: Published Journal Publication published 02 Aug, 2024 Read the published version in Journal of Cloud Computing → Version 1 posted Editorial decision: Revision requested 03 Apr, 2024 Reviews received at journal 03 Apr, 2024 Reviewers agreed at journal 22 Mar, 2024 Reviewers invited by journal 21 Mar, 2024 Editor assigned by journal 19 Mar, 2024 Submission checks completed at journal 19 Mar, 2024 First submitted to journal 18 Mar, 2024 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-4126223","acceptedTermsAndConditions":true,"allowDirectSubmit":false,"archivedVersions":[],"articleType":"Research Article","associatedPublications":[],"authors":[{"id":281196375,"identity":"d647abe9-ccc5-4a2b-bb76-7f742e481ee9","order_by":0,"name":"Chunwang Wu","email":"","orcid":"","institution":"Sichuan University","correspondingAuthor":false,"prefix":"","firstName":"Chunwang","middleName":"","lastName":"Wu","suffix":""},{"id":281196376,"identity":"eaf39590-fad2-4cba-87b5-0c2197474dfd","order_by":1,"name":"Xiaolei Liu","email":"","orcid":"","institution":"China Academy of Engineering Physics","correspondingAuthor":false,"prefix":"","firstName":"Xiaolei","middleName":"","lastName":"Liu","suffix":""},{"id":281196377,"identity":"d6fc4f03-ecc7-492a-89e8-109e8a0f73a6","order_by":2,"name":"Kangyi Ding","email":"","orcid":"","institution":"China Academy of Engineering Physics","correspondingAuthor":false,"prefix":"","firstName":"Kangyi","middleName":"","lastName":"Ding","suffix":""},{"id":281196378,"identity":"5d2d1061-d3e4-4625-8079-2a7697834501","order_by":3,"name":"Bangzhou Xin","email":"","orcid":"","institution":"China Academy of Engineering Physics","correspondingAuthor":false,"prefix":"","firstName":"Bangzhou","middleName":"","lastName":"Xin","suffix":""},{"id":281196379,"identity":"95df3ab1-7e47-4c6b-ad39-dd9812980f8f","order_by":4,"name":"Jiazhong Lu","email":"","orcid":"","institution":"Chengdu University of Information Technology","correspondingAuthor":false,"prefix":"","firstName":"Jiazhong","middleName":"","lastName":"Lu","suffix":""},{"id":281196380,"identity":"c9aab60c-fe76-495e-861e-6544415d3b5d","order_by":5,"name":"Jiayong Liu","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAApElEQVRIiWNgGAWjYBACPoYDjA8gzAQitbAxHGA2IFULA5sEiVoYz5hV/qg5zMDPnmPA8HMHUbacMbvNc+wwg2TPGwPG3jPEamFsOMxgcCPHgJmxjUgthT+BWuxJ0sLAC7JFgngtx4qleY6l80iceVZwsJcYLfwShzd+/FFjLcffnrzxwU9itDBInADHJA+IOECMBqA17Q+IUzgKRsEoGAUjFwAAbfoyCmBq69IAAAAASUVORK5CYII=","orcid":"","institution":"Sichuan University","correspondingAuthor":true,"prefix":"","firstName":"Jiayong","middleName":"","lastName":"Liu","suffix":""},{"id":281196381,"identity":"c0e68396-f442-4d0c-ae04-a20927e2e8ab","order_by":6,"name":"Cheng Huang","email":"","orcid":"","institution":"Sichuan University","correspondingAuthor":false,"prefix":"","firstName":"Cheng","middleName":"","lastName":"Huang","suffix":""}],"badges":[],"createdAt":"2024-03-19 00:14:13","currentVersionCode":1,"declarations":"","doi":"10.21203/rs.3.rs-4126223/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-4126223/v1","draftVersion":[],"editorialEvents":[{"content":"https://doi.org/10.1186/s13677-024-00678-w","type":"published","date":"2024-08-02T15:57:11+00:00"}],"editorialNote":"","failedWorkflow":false,"files":[{"id":61793886,"identity":"1631e063-306b-444c-90fa-5ac7a3258c82","added_by":"auto","created_at":"2024-08-05 16:16:28","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":410092,"visible":true,"origin":"","legend":"","description":"","filename":"IntrusionDetectionModelforBCoTbasedonContrastiveVariationalAutoencoderandMetricLearning.pdf","url":"https://assets-eu.researchsquare.com/files/rs-4126223/v1_covered_873afabc-ecf9-4e6b-9fda-3bf809089f15.pdf"}],"financialInterests":"No competing interests reported.","formattedTitle":"Attack Detection Model for BCoT based on Contrastive Variational Autoencoder and Metric Learning","fulltext":[],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":false,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":false,"hideJournal":false,"highlight":"","institution":"","isAcceptedByJournal":true,"isAuthorSuppliedPdf":true,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":false,"isPdf":true,"isPdfUpToDate":true,"isWithdrawnOrRetracted":false,"journal":{"display":true,"email":"[email protected]","identity":"journal-of-cloud-computing","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":false,"externalIdentity":"clco","sideBox":"Learn more about [Journal of Cloud Computing](http://journalofcloudcomputing.springeropen.com)","snPcode":"13677","submissionUrl":"https://submission.nature.com/new-submission/13677/3","title":"Journal of Cloud Computing","twitterHandle":"@SpringerOpen","acdcEnabled":true,"dfaEnabled":true,"editorialSystem":"em","reportingPortfolio":"BMC/SO AJ","inReviewEnabled":true,"inReviewRevisionsEnabled":true},"keywords":"attack detection, BCoT, metric learning, contrastive variational autoencoder, oversample","lastPublishedDoi":"10.21203/rs.3.rs-4126223/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-4126223/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003cp\u003eWith development of blockchain technology, clouding computing and Internet of Things (IoT), blockchain and cloud of things (BCoT) has become development tendency. But the security has become the most development hinder of BCoT. Attack detection model is a crucial part of attack revelation mechanism for BCoT. As a consequence, attack detection model has received more concerned. Due to the great diversity and variation of network attacks aiming to BCoT, tradition attack detection models are not suitable for BCoT. In this paper, we propose a novel attack detection model for BCoT, denoted as cVAE-DML. The novel model is based on contrastive variational autoencoder (cVAE) and deep metric learning (DML). By training the cVAE, the proposed model generates private features for attack visiting information as well as shared features between attack visiting information and normal visiting information. Based on those generated features, the proposed model can generate representative new samples to balance the training dataset. At last, the decoder of cVAE is connected to the deep metric learning network to detect attack aiming to BCoT. The efficiency of cVAE-DML is verified using the CIC-IDS 2017 dataset and CSE-CIC-IDS 2018 dataset. The results show that cVAE-DML can improve attack detection efficiency even under the condition of unbalanced samples.\u003c/p\u003e","manuscriptTitle":"Attack Detection Model for BCoT based on Contrastive Variational Autoencoder and Metric Learning","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2024-03-21 04:22:36","doi":"10.21203/rs.3.rs-4126223/v1","editorialEvents":[{"type":"communityComments","content":0},{"type":"decision","content":"Revision requested","date":"2024-04-04T01:37:58+00:00","index":"","fulltext":""},{"type":"editorInvitedReview","content":"","date":"2024-04-03T09:41:48+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"5bbc09df-f46f-4f30-a157-fd6d8b9c1ac0","date":"2024-03-22T05:19:09+00:00","index":"hide","fulltext":""},{"type":"reviewersInvited","content":"","date":"2024-03-21T22:58:53+00:00","index":"","fulltext":""},{"type":"editorAssigned","content":"","date":"2024-03-19T05:40:44+00:00","index":"","fulltext":""},{"type":"checksComplete","content":"","date":"2024-03-19T04:51:11+00:00","index":"","fulltext":""},{"type":"submitted","content":"Journal of Cloud Computing","date":"2024-03-19T00:08:57+00:00","index":"","fulltext":""}],"status":"published","journal":{"display":true,"email":"[email protected]","identity":"journal-of-cloud-computing","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":false,"externalIdentity":"clco","sideBox":"Learn more about [Journal of Cloud Computing](http://journalofcloudcomputing.springeropen.com)","snPcode":"13677","submissionUrl":"https://submission.nature.com/new-submission/13677/3","title":"Journal of Cloud Computing","twitterHandle":"@SpringerOpen","acdcEnabled":true,"dfaEnabled":true,"editorialSystem":"em","reportingPortfolio":"BMC/SO AJ","inReviewEnabled":true,"inReviewRevisionsEnabled":true}}],"origin":"","ownerIdentity":"fe8c7d5f-dcb1-4aea-99d0-51422039c122","owner":[],"postedDate":"March 21st, 2024","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"published-in-journal","subjectAreas":[],"tags":[],"updatedAt":"2024-08-05T16:08:13+00:00","versionOfRecord":{"articleIdentity":"rs-4126223","link":"https://doi.org/10.1186/s13677-024-00678-w","journal":{"identity":"journal-of-cloud-computing","isVorOnly":false,"title":"Journal of Cloud Computing"},"publishedOn":"2024-08-02 15:57:11","publishedOnDateReadable":"August 2nd, 2024"},"versionCreatedAt":"2024-03-21 04:22:36","video":"","vorDoi":"10.1186/s13677-024-00678-w","vorDoiUrl":"https://doi.org/10.1186/s13677-024-00678-w","workflowStages":[]},"version":"v1","identity":"rs-4126223","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-4126223","identity":"rs-4126223","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.

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