Enhancing Intrusion Detection Using MAG: A Shallow Multilayer Perceptron Tuned with Adam and Grey Wolf Optimization

preprint OA: closed
Full text JSON View at publisher

Abstract

Abstract This study introduces MAG, a lightweight intrusion detection system (IDS) that couples a single-hidden-layer multilayer perceptron (MLP) with the Adam optimizer and a Grey Wolf Optimizer (GWO) for hyperparameter tuning. A Classification and Regression Tree (CART) stage in WEKA first derives compact five-feature subsets for the KDDCup99 and NSL-KDD benchmarks, enabling multiclass and binary evaluation with reduced input dimensionality. The leakage-free pipeline combines target encoding, capped Synthetic Minority Over-sampling Technique (SMOTE) resampling to address class imbalance, and z-score normalization within a repeated nested cross-validation (CV) protocol. Across 25 runs, MAG consistently outperforms plain MLP and its Adam- and GWO-augmented variants in macro-averaged F1 score (F1), while using only 122 parameters and achieving sub-millisecond CPU inference with a negligible memory footprint. A nonparametric Friedman test over four dataset–task combinations confirms that MAG attains a significantly better overall ranking than the competing models, supporting its suitability for cost-aware IDS deployment.
Full text 10,337 characters · extracted from preprint-html · click to expand
Enhancing Intrusion Detection Using MAG: A Shallow Multilayer Perceptron Tuned with Adam and Grey Wolf Optimization | 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 Enhancing Intrusion Detection Using MAG: A Shallow Multilayer Perceptron Tuned with Adam and Grey Wolf Optimization Iman Farhadian Dehkordi, Kooroush Manochehri This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-9463244/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 This study introduces MAG, a lightweight intrusion detection system (IDS) that couples a single-hidden-layer multilayer perceptron (MLP) with the Adam optimizer and a Grey Wolf Optimizer (GWO) for hyperparameter tuning. A Classification and Regression Tree (CART) stage in WEKA first derives compact five-feature subsets for the KDDCup99 and NSL-KDD benchmarks, enabling multiclass and binary evaluation with reduced input dimensionality. The leakage-free pipeline combines target encoding, capped Synthetic Minority Over-sampling Technique (SMOTE) resampling to address class imbalance, and z-score normalization within a repeated nested cross-validation (CV) protocol. Across 25 runs, MAG consistently outperforms plain MLP and its Adam- and GWO-augmented variants in macro-averaged F1 score (F1), while using only 122 parameters and achieving sub-millisecond CPU inference with a negligible memory footprint. A nonparametric Friedman test over four dataset–task combinations confirms that MAG attains a significantly better overall ranking than the competing models, supporting its suitability for cost-aware IDS deployment. Intrusion Detection Systems (IDS) Multilayer Perceptron (MLP) Grey Wolf Optimizer (GWO) Feature Selection KDDCup99 NSL-KDD Full Text Additional Declarations The authors declare no competing interests. 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-9463244","acceptedTermsAndConditions":true,"allowDirectSubmit":true,"archivedVersions":[],"articleType":"Research Article","associatedPublications":[],"authors":[{"id":625757981,"identity":"311f2525-ece6-42a2-a198-9b13af671137","order_by":0,"name":"Iman Farhadian Dehkordi","email":"","orcid":"","institution":"Department of Computer Engineering, Central Tehran Branch, Islamic Azad University, Tehran, Iran","correspondingAuthor":false,"prefix":"","firstName":"Iman","middleName":"Farhadian","lastName":"Dehkordi","suffix":""},{"id":625786175,"identity":"e336a3f3-5e18-471f-b9dd-cafeff3c556f","order_by":1,"name":"Kooroush Manochehri","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA4ElEQVRIiWNgGAWjYBACCQh1gMGAgbHxAUz0ALFamg0YgBQpWhjYJGBa8ALJaYefPfhQc0fOXPpwW8XPtj8M/O0HGA9X4NEiLZ1mbjjj2DNjy77Etpu9bQYMEmcSGA6ewaNFTjrBTJq34XDihjOMbTd4gVoYbjAwHGzAqyX9G0hLPUhL4V+gFnlCWqSlc8C2JBgAtTCDbDEgpEVydk6Z5Ixjhw2BtjRLy5wz5jE8k9iAV4vE7fRtEh9qDssbnGF/+PFNmZyc3PHDhz/i04IBeBgYGEnSMApGwSgYBaMACwAAkshPHaEpkk4AAAAASUVORK5CYII=","orcid":"","institution":"Department of Computer Engineering, Amirkabir University of Technology (Tehran polytechnic), Garmsar Campus, Iran","correspondingAuthor":true,"prefix":"","firstName":"Kooroush","middleName":"","lastName":"Manochehri","suffix":""}],"badges":[],"createdAt":"2026-04-19 15:31:03","currentVersionCode":1,"declarations":{"humanSubjects":false,"vertebrateSubjects":false,"conflictsOfInterestStatement":false,"humanSubjectEthicalGuidelines":false,"humanSubjectConsent":false,"humanSubjectClinicalTrial":false,"humanSubjectCaseReport":false,"vertebrateSubjectEthicalGuidelines":false},"doi":"10.21203/rs.3.rs-9463244/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-9463244/v1","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":107730365,"identity":"330ae1b5-ef55-4b75-85cb-6e26bbfee275","added_by":"auto","created_at":"2026-04-24 12:56:20","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":1316997,"visible":true,"origin":"","legend":"","description":"","filename":"MLPANNGWO.pdf","url":"https://assets-eu.researchsquare.com/files/rs-9463244/v1_covered_5df80fb2-408f-4537-ac09-f2c2240d6acb.pdf"}],"financialInterests":"The authors declare no competing interests.","formattedTitle":"\u003cp\u003eEnhancing Intrusion Detection Using MAG: A Shallow Multilayer Perceptron Tuned with Adam and Grey Wolf Optimization\u003c/p\u003e","fulltext":[],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":false,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":true,"hideJournal":true,"highlight":"","institution":"Central Tehran Branch, Islamic Azad University, Tehran, Iran","isAcceptedByJournal":false,"isAuthorSuppliedPdf":true,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":true,"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":"Intrusion Detection Systems (IDS), Multilayer Perceptron (MLP), Grey Wolf Optimizer (GWO), Feature Selection, KDDCup99, NSL-KDD","lastPublishedDoi":"10.21203/rs.3.rs-9463244/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-9463244/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003cp\u003eThis study introduces MAG, a lightweight intrusion detection system (IDS) that couples a single-hidden-layer multilayer perceptron (MLP) with the Adam optimizer and a Grey Wolf Optimizer (GWO) for hyperparameter tuning. A Classification and Regression Tree (CART) stage in WEKA first derives compact five-feature subsets for the KDDCup99 and NSL-KDD benchmarks, enabling multiclass and binary evaluation with reduced input dimensionality. The leakage-free pipeline combines target encoding, capped Synthetic Minority Over-sampling Technique (SMOTE) resampling to address class imbalance, and z-score normalization within a repeated nested cross-validation (CV) protocol. Across 25 runs, MAG consistently outperforms plain MLP and its Adam- and GWO-augmented variants in macro-averaged F1 score (F1), while using only 122 parameters and achieving sub-millisecond CPU inference with a negligible memory footprint. A nonparametric Friedman test over four dataset\u0026ndash;task combinations confirms that MAG attains a significantly better overall ranking than the competing models, supporting its suitability for cost-aware IDS deployment.\u003c/p\u003e","manuscriptTitle":"Enhancing Intrusion Detection Using MAG: A Shallow Multilayer Perceptron Tuned with Adam and Grey Wolf Optimization","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2026-04-21 15:20:46","doi":"10.21203/rs.3.rs-9463244/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":"cf74b3ce-df70-4ad2-841b-e3c38c7daa30","owner":[],"postedDate":"April 21st, 2026","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"posted","subjectAreas":[],"tags":[],"updatedAt":"2026-04-21T15:20:46+00:00","versionOfRecord":[],"versionCreatedAt":"2026-04-21 15:20:46","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v1","identity":"rs-9463244","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-9463244","identity":"rs-9463244","version":["v1"]},"buildId":"XKTyCvWXoU3ODBz1xrDgd","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 (2026) — 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