Machine Learning-Based Network Intrusion Detection for IOT and Smart Detection Using Recursive Feature Elimination, Binning Technique and Grid Search CV | 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 Machine Learning-Based Network Intrusion Detection for IOT and Smart Detection Using Recursive Feature Elimination, Binning Technique and Grid Search CV Damilola Akinola, Micheal Olalekan Ajinaja, Joel Adeyanju Adewuyi This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-5616301/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 The exponential growth of Internet of Things (IoT) devices and smart technologies has escalated the risk of network intrusions, necessitating advanced Intrusion Detection Systems (IDS) to ensure robust cybersecurity. This study presents a machine learning-based IDS framework tailored for IoT networks, employing Recursive Feature Elimination (RFE), binning techniques, and GridSearchCV for comprehensive feature selection and hyperparameter tuning. The CICIDS2017 dataset, a benchmark dataset for intrusion detection, is utilized to train and validate the models. The proposed pipeline begins with data pre-processing, including attribute verification, duplicate removal, and label encoding, followed by a detailed feature selection process. Recursive Feature Elimination (RFE) was utilized to identify and retain the most significant features, feature engineering incorporated domain knowledge to create new attributes and employed binning techniques to effectively manage continuous features and GridSearchCV was applied to identify the best parameter combinations. Multiple machines learning models, including LR, DT, RF, NB and SVM were analyzed and optimized through this comprehensive pipeline. Visualization techniques further enhanced understanding of feature importance and model behavior. The performance metrics reveal the effectiveness of the approach, with Random Forest achieving a remarkable accuracy of 99.78%, closely followed by Decision Tree at 99.50%. This underscores the efficacy of the methodology in addressing network intrusion detection challenges within IoT ecosystems. The framework provides a robust, scalable solution for securing interconnected systems against evolving cyber threats. Intrusion Detection Systems IoT Network Security Recursive Feature Elimination GridSearchCV Optimization machine learning 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-5616301","acceptedTermsAndConditions":true,"allowDirectSubmit":true,"archivedVersions":[],"articleType":"Research Article","associatedPublications":[],"authors":[{"id":391809391,"identity":"d1df2e96-b435-4948-8781-51cc13976c7b","order_by":0,"name":"Damilola Akinola","email":"","orcid":"","institution":"Bowie State University","correspondingAuthor":false,"prefix":"","firstName":"Damilola","middleName":"","lastName":"Akinola","suffix":""},{"id":391809392,"identity":"df3143de-2c41-47fd-84ba-d0770e0115aa","order_by":1,"name":"Micheal Olalekan Ajinaja","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAABHUlEQVRIie2QsWrDMBCGTwiUxW1WTfETFGwCbkopfZWaDF0a6OT5RCBZAlk19hUydbXRWuw10AwxgUwd3M1DAz0lkHawQ8ZC9YGOG/Rxdz+Aw/EX4fRkAMCQpxUIgEvgCLY5QxGxtj8FtaeVH7zwPOVqystq8Lzy+fTtE6tk1RMdhVAlBq67L41KZERfymAbqtlooXS+7QsvQ6ZzAzd63aJ4QIphCkevm4uJiScyRk4NBMu0TeE1Kfdq/lGOd1bxS+S704qwU2Kln9iY7adQ3swqBbbdEg1IGSpt79nfEmM2yx+9YNmcWFSYzbv8MneL+bDEmhLrdky2rpPbXlA0L2bhkkp42CI9VorloVVhFRUffikHuu1THA6H41/xDf2XaW8OShrdAAAAAElFTkSuQmCC","orcid":"","institution":"Federal Polytechnic Ile Oluji","correspondingAuthor":true,"prefix":"","firstName":"Micheal","middleName":"Olalekan","lastName":"Ajinaja","suffix":""},{"id":391809393,"identity":"6ace2341-2e09-4979-afb1-122f4f3c0089","order_by":2,"name":"Joel Adeyanju Adewuyi","email":"","orcid":"","institution":"Bowen University","correspondingAuthor":false,"prefix":"","firstName":"Joel","middleName":"Adeyanju","lastName":"Adewuyi","suffix":""}],"badges":[],"createdAt":"2024-12-10 11:53:18","currentVersionCode":1,"declarations":"","doi":"10.21203/rs.3.rs-5616301/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-5616301/v1","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":78075207,"identity":"7cad6c71-5bfc-4ed8-898c-c251b560c5f2","added_by":"auto","created_at":"2025-03-09 09:01:38","extension":"pdf","order_by":1,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":938870,"visible":true,"origin":"","legend":"","description":"","filename":"paper2.pdf","url":"https://assets-eu.researchsquare.com/files/rs-5616301/v1_covered_ab3886b0-2b4a-4949-9be9-6b3a9d4abd6d.pdf"}],"financialInterests":"No competing interests reported.","formattedTitle":"\u003cp\u003eMachine Learning-Based Network Intrusion Detection for IOT and Smart Detection Using Recursive Feature Elimination, Binning Technique and Grid Search CV\u003c/p\u003e","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":"Intrusion Detection Systems, IoT Network Security, Recursive Feature Elimination, GridSearchCV Optimization, machine learning","lastPublishedDoi":"10.21203/rs.3.rs-5616301/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-5616301/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003cp\u003eThe exponential growth of Internet of Things (IoT) devices and smart technologies has escalated the risk of network intrusions, necessitating advanced Intrusion Detection Systems (IDS) to ensure robust cybersecurity. This study presents a machine learning-based IDS framework tailored for IoT networks, employing Recursive Feature Elimination (RFE), binning techniques, and GridSearchCV for comprehensive feature selection and hyperparameter tuning. The CICIDS2017 dataset, a benchmark dataset for intrusion detection, is utilized to train and validate the models. The proposed pipeline begins with data pre-processing, including attribute verification, duplicate removal, and label encoding, followed by a detailed feature selection process. Recursive Feature Elimination (RFE) was utilized to identify and retain the most significant features, feature engineering incorporated domain knowledge to create new attributes and employed binning techniques to effectively manage continuous features and GridSearchCV was applied to identify the best parameter combinations. Multiple machines learning models, including LR, DT, RF, NB and SVM were analyzed and optimized through this comprehensive pipeline. Visualization techniques further enhanced understanding of feature importance and model behavior. The performance metrics reveal the effectiveness of the approach, with Random Forest achieving a remarkable accuracy of 99.78%, closely followed by Decision Tree at 99.50%. This underscores the efficacy of the methodology in addressing network intrusion detection challenges within IoT ecosystems. The framework provides a robust, scalable solution for securing interconnected systems against evolving cyber threats.\u003c/p\u003e","manuscriptTitle":"Machine Learning-Based Network Intrusion Detection for IOT and Smart Detection Using Recursive Feature Elimination, Binning Technique and Grid Search CV","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2024-12-20 07:55:44","doi":"10.21203/rs.3.rs-5616301/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":"eab4df78-ddae-44a7-a540-38970b583979","owner":[],"postedDate":"December 20th, 2024","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"posted","subjectAreas":[],"tags":[],"updatedAt":"2025-03-09T08:53:20+00:00","versionOfRecord":[],"versionCreatedAt":"2024-12-20 07:55:44","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v1","identity":"rs-5616301","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-5616301","identity":"rs-5616301","version":["v1"]},"buildId":"qtupq5eGEP_6zYnWcrvyt","isFallback":false,"isExperimentalCompile":false,"dynamicIds":[84888],"gssp":true,"scriptLoader":[]}
Text is read by the "Ask this paper" AI Q&A widget below.
Extraction quality varies by source — PMC NXML preserves structure
cleanly, OA-HTML may include some navigation residue, and OA-PDF can
have broken hyphenation. The publisher copy
(via DOI)
is the canonical version.