WhatsApp Us
🛡️ Full Text Documentation · All Extracted Figures · Academic Research

Hybrid Intrusion Detection System For Smart Home Networks — Complete Documentation & Simulation

Comprehensive engineering investigation covering full text content, methodology, system models, simulated adversary emulation, and all architectural figures.

54
Paper Sections
3
Extracted Figures
4.9★
Student Rating
Metasploit Burp Suite Pro SafeBreach Cymulate BAS Cisco Packet Tracer KnowBe4 Engine

Complete Technical Paper Content — Hybrid Intrusion Detection System For Smart Home Networks

Overview & System Context

Hybrid Intrusion Detection System For Smart Home Networks: Comprehensive Web-Sourced Technical Investigation Exhaustive Research Dossier · Pure Web-Scraped Content: ~5471 Words · Real Software Screenshots: 3 1. Executive Overview & Technical Background The rapid growth of the Internet of Things (IoT) has revolutionized industries, enabling unprecedented connectivity and functionality. However, this expansion also increases vulnerabilities, exposing IoT networks to increasingly sophisticated cyberattacks. Intrusion Detection Systems (IDS) are crucial for mitigating these threats, and recent advancements in Machine Learning (ML) offer promising avenues for improvement. This research explores a hybrid approach, combining several standalone ML models such as Random Forest (RF), XGBoost, K-Nearest Neighbors (KNN), and AdaBoost, in a voting-based hybrid classifier for effective IoT intrusion detection. This ensemble method leverages the strengths of individual algorithms to enhance accuracy and address challenges related to data complexity and scalability. Using the widely-cited IoT-23 dataset, a prominent benchmark in IoT cybersecurity research, we evaluate our hybrid classifiers for both binary and multi-class intrusion detection problems, ensuring a fair comparison with existing literature. Results demonstrate that our proposed hybrid models, designed for robustness and scalability, outperform standalone approaches in IoT environments. This work contributes to the development of advanced, intelligent IDS frameworks capable of addressing evolving cyber threats.

The Internet of Things (IoT) has brought about new dimensions in the modern world, facilitating connection between devices through networks in fields such as healthcare, transportation, and smart cities. Among all these advantages IoT technology brings, cyber-crime attackers readily attack critical vulnerabilities. This is because IoT networks are extensive in scale and, therefore, complex, making them hot targets for attacks related to data breaches, malware infections, and Distributed Denial-of-Service (DDoS) incidents. Although these threats are becoming more sophisticated, there is a need for effective and adaptive intrusion detection mechanisms to cope with the ever-expanding complexity of cyberattacks.

This development has opened new avenues to improve IoT security through computational advancements. Learning-based methods are generally effective in detecting malicious activities. In contrast to static and rule-based systems, they can analyze large volumes of data to reveal hidden patterns and detect abnormalities in real-time. Their advantage is their adaptability, as the system can always stay one step ahead of the bad guys. These approaches equip IoT networks with dynamic defense against cyber risks by drawing on insights gained from various data sources.

Intrusion Detection Systems (IDS) play a critical role in cybersecurity by identifying malicious activities in a network or system. In the recent past, researchers often employed machine learning (ML) and deep learning (DL) methods, either as standalone models or in hybrid configurations, to enhance IDS capabilities, especially to detect anomalies (abnormal behaviors or activities within their systems or networks). These methods cater to binary classification (e.g., distinguishing between malicious and benign activities) and multi-class classification (e.g., identifying specific types of attacks).

Figure 1: Top 10 Powerful Intrusion Detection System Model In this study, we utilize IoT-23 Dataset, a benchmark IoT dataset for intrusion detection research, developed by the Stratosphere Laboratory [ 12 ] . The main focus of this dataset is on malicious and benign traffic. The dataset contains 23 labeled scenarios and a wide range of attacks like DDoS, data exfiltration, malware activities, and normal traffic from IoT devices such as smart cameras, motion sensors, and smart hubs. It is captured in packet capture format, hence suitable for signature-based and ML based analysis. This dataset is of great value in evaluating IDS due to its representation of real-world IoT scenarios, the balance between attack and benign data, and the coverage of different attack vectors in IoT networks.

Early steps of our study were presented in [ 3 ] , especially involving binary classification with standalone ML methods. In this study, we explore a hybrid approach that combines the strengths of multiple computational models to improve intrusion detection in IoT systems. This approach addresses common challenges, such as balancing detection accuracy with scalability and minimizing false alarms. By uniting complementary techniques, the framework aims to create a more resilient solution capable of countering previously unseen threats. Through this work, we hope to offer practical strategies for building secure IoT environments tailored to the unique demands of this rapidly growing field.

The paper’s organization is as follows: Section II provides the related work (literature) in the field. Section III includes the prominent phase of this study, which is the “Data Pre-Processing”. Section IV provides the foundations and methodology related to ML algorithms used in this study. Section V plots all the necessary experimental results for evaluating the proposed Mix-Zone scheme for the IoBT. Finally, the overall work is deduced and concluded in Section VI .

Given their growing and linked character, IoT networks—which are increasingly vulnerable to cyber-attacks—rely on IDS to maintain their security. Using both binary and multi-class intrusion detection models, several machine ML and DL methods have been employed to improve IDS. This review of the literature investigates several current works addressing intrusion detection problems using various techniques, both as stand-alone models and in hybrid setups.

Figure 2: Smart Home Security That Pays For Itself: The Eco-Friendly Approach ... The authors of [ 7 ] presented a new AI framework that detects malware in IoT devices to mitigate cyber-attacks. The authors focus on enhancing security in various use cases for smart environments through an all-inclusive AI-enabled approach in this paper. Emulation of a smart environment employing the Raspberry Pi and NVIDIA Jetson as gateways in capturing data from IoT devices connected via the MQTT protocol, therefore enabling monitoring of real-time malware attacks for their prediction.

In this work, many models of AI have been evaluated, among which the DNN model demonstrated superior accuracy and classification capability with an F1-score of 92% and detection accuracy of 93% on Edge-IIoTset and IoT-23. Concerns about the impact on system resources by specifying metrics are drawn to traffic and CPU usage on both devices, while challenges include the lack of ground-truth data in most cyberattacks. Future research shall be on few-shot learning, lightweight model implementation, DL cutting-edge methodologies, penetration testing, and the use of additional sensor and actuator data to enhance the anomaly detection system.

Using the IoT 2023 dataset as a thorough benchmark, the study of [ 23 ] tackles the issue of feature extraction from IoT data. The goal is to gain a better understanding of the dataset’s properties and possible uses by evaluating both classic statistical approaches and ML-based methods. Feature extraction takes on more significance in the context of the IoT because of the "curse of dimensionality," the well-known fact that data processing and analysis get more complicated as the number of dimensions grows. Various techniques have been surveyed to place them in the context of their strengths in capturing relevant information, reducing dimensionality, and improving performance in IoT analytics. Some key findings in this respect include the Hughes phenomenon: classifier performance may get better with more features up to some optimal point before deteriorating. This paper guides the choice of suitable feature extraction methods to be deployed for various IoT applications via ample experiments and performance analysis. This will, therefore, help in the practical development of IoT solutions in 2023 and beyond. Besides, according to the authors, little effect of reducing features on the model performance is up to an accuracy of 93.04% using Decision Trees and 93.05% using Random Forest (RF) models.

Using ML approaches, Prazeres et al. (2022) evaluates AI-based malware detection in IoT network traffic. The study makes use of the IoT-23 dataset using real IoT network traffic of both benign and malicious, including numerous forms of malware including botnets and DDoS attacks. Key strategies to categorize network traffic are feature selection, data normalization, and the application of several ML models (Logistic Regression, RF, ANN, and Naïve Bayes) [ 21 ] .

Especially in multi-class issues, RF has repeatedly shown to be a useful classifier in identifying intrusions. For example, with high accuracy rates in multi-class classification, a RF application to the IoT-23 dataset revealed better performance than other ML models [ 18 ] . Figure 3: AI-Powered Intrusion Detection System for Home WiFi Networks | Devpost Likewise, XGBoost, known for its boosting power, has demonstrated extraordinary intrusion detection capability. As network IDS built for IoT networks show, XGBoost lowers mistakes and raises classification accuracy by iteratively strengthening weak models [ 6 ] . Research also shows how well it can handle prevalent network dataset class imbalance problems [ 13 ] .

Using multiclassification models within the PySpark architecture, a 2024 study by Alrefaei et al. [ 4 ] offers an IoT network real-time intrusion detection system (IDS). One-Vs- Rest (OVR) method ML approaches include RF, Decision Trees, Logistic Regression, and XGBoost help to enhance detection accuracy and minimize prediction latency. Class imbalance is solved via data cleansing, scaling, and SMote using the IoT-23 dataset. RF displayed the fastest prediction time at 0.0311 seconds, but XGBoost achieved the highest accuracy at 98.89%, underlining the system’s value in real-time IoT threat detection and so reducing security concerns.

2. System Architecture & Core Working Principles Combining the advantages of several classifiers, ensemble approaches have shown notable gains in IDS performance. In particular, hybrid models, which combine classifiers in voting systems to improve overall accuracy and detection rate, have encouraging results. Upadhyay et al. (2021) presented a majority voting ensemble combining RF, XGBoost, and KNN with additional classifiers for SCADA-based power grids. Their model demonstrated gains in binary and multi-class classification by selecting features using Recursive Feature Elimination and then utilizing majority voting to increase precision and recall [ 26 ] .

A hybrid model that included RF, XGBoost, and KNN and was improved using feature selection approaches was also investigated by Liu et al. (2023). When tested on many datasets, their approach showed an increase in overall detection accuracy and a decrease in false positives. In this study, the voting system of a hybrid classifier, which combines other individual classifiers, is achieving better performance than stand-alone classifiers [ 17 ] .

Research shows that a voting ensemble of classifiers including RF, XGBoost, AdaBoost, KNN, and SVC performs better than any classifier taken on alone. Leevy et al. (2021) evaluated different ensemble models, including XGBoost and RF, to find assaults in the framework of the IoT. Their studies show that in terms of adaptation and accuracy, ensemble models usually outperform individual classifiers [ 15 ] .

When testing IDS, the gold standard is the IoT-23 dataset, which simulates real-world IoT network traffic. It provides several attack scenarios that researchers can use to test the multi-class classification capabilities of DL and ML models. Detection rates surpass 99% when models based on RF and CNN are used [ 9 ] . ElKashlan et al. proposed a ML-based IDS to safeguard electric vehicle charging stations (EVCSs) in an IoT environment.

They evaluated many machine-learning techniques to identify fraudulent traffic in both binary and multiclass traffic models using a real-world IoT dataset. The suggested solution seeks to improve EVCS security by successfully detecting and thwarting cyberattacks, guaranteeing the ecosystem’s stability, and guarding against possible interruptions to day-to-day operations. Along with defining the EV charging ecosystem, the article looks at the many attack types that could happen and the vulnerabilities that each component faces. The traffic and possible assaults on an EVCS were represented by them using a native IoT dataset, IoT-23, which is derived from actual IoT devices [ 11 ] .

To improve intrusion detection in IoT networks, Ullah et al. (2021) suggested a hybrid model that combines Convolutional Neural Networks (CNN) with Gated Recurrent Units (GRU). To accomplish reliable binary and multiclass classifications, it applies sophisticated preprocessing and feature selection algorithms to a variety of datasets (BoT-IoT, MQTT-IoT-IDS2020, etc.). The model outperforms earlier techniques with high accuracy (up to 99.96%) and efficient detection rates across a range of cyberattack types. Its architecture uses strategies like dropout layers and early halting to overcome common problems like overfitting and data imbalance. In order to improve detection skills, future research areas will use Generative Adversarial Networks (GANs) [ 25 ] .

Using generative adversarial networks (GANs), Park et al. suggest an improved AI-based network intrusion detection system (NIDS). To identify anomalies and learn the typical behavior of network traffic, the system makes use of a DL model. In order to increase the NIDS’s accuracy, the study also creates fake data using GANs. When tested on a benchmark dataset, the suggested system outperforms the most advanced NIDSs, according to the results. The study comes to the conclusion that the suggested approach can be utilized to increase computer network security and is efficient at identifying network intrusions [ 20 ] .

To identify cyberattacks in IoT networks, Abdalgawad et al. investigated the use of generative DL models, such as Adversarial Autoencoders (AAE) and Bidirectional Generative Adversarial Networks (BiGAN). They analyzed the IoT-23 dataset, which includes network traffic information from actual IoT devices, such as Amazon Echoes and smart door locks. These models were trained to recognize a variety of attacks, such as botnet activity from Mirai, Okiru, and Torii, as well as DDoS attacks.

According to the study, these generative models outperformed more conventional ML techniques like RF in terms of intrusion detection. This study shows how generative DL can be used to enhance cybersecurity in the expanding IoT environment [ 1 ] . Data pre-processing is essential in preparing datasets for analysis in training ML models. This stage ensures that the data is well organized, cleaned, and structured in such a way as to guarantee meaningful insights in the subsequent processing. Data pre-processing includes identifying the dataset type, understanding class distributions, uncovering patterns, and extracting other useful information that will drive how the data should be analyzed. This leads to improved model performance and reliability [ 2 ] .

Data analysis is a crucial stage in the pipeline of data pre-processing. It is used to study the dataset for its structure, distribution of classes, and any inherent patterns or anomalies. These are important for formulating a strategy on how the data should be transformed, normalized, or cleaned to optimize the results in further analysis. We used 100,000 data observations for binary classification, and for multi-class classification, we used 69,398 data observations. Each class has 50,000 observations for binary classification and for multi-class classification, each class has around 10,000 observations.

For binary classification there are only two classes: Benign and Malicious and for the multi-class classification, there are seven classes: Benign, C&C- HeartBeat, DDoS, Okiru, PartOfHorizontalPortscan, C&C, and Attack. Missing data handling refers to missing values so they don’t negatively impact target prediction. To address the missing values in the IoT-23 dataset, we substituted the empty values of numerical features with the “mean” value of that feature. We have chosen to fill the empty values with mean because if we keep them, it will compromise the data integrity and distort the proper data distribution. Additionally, there was a categorical feature called service that had been filled with the value “unknown” and also had empty values.

We didn’t use the “mean” values for the categorical features because this feature will be converted into 0 and 1 later. If we fill the empty values of this feature with the mean, then it cannot indicate the classes of that feature because the mean will be the average of that feature, which is a float value. Effective handling of missing data achieves the integrity of model training and minimizes the risk of biased or incorrect predictions [ 22 ] .

3. Software Implementation, Frameworks & Protocols We need to convert the categorical features into numeric values to train the ML models because the models cannot understand a word as an input value. To do that, we applied the One-hot encoding method, which converts features such as if a specific class is present in an observation. It denotes the value of that observation for that class as one otherwise 0.

The goal of feature engineering in ML is to improve a model’s prediction power by enhancing it with additional features or tweaking its current features. It converts raw data into a format better suited for model training so the computer can more effectively find significant trends, correlations, and patterns. Practical feature engineering uses domain expertise; for instance, dimensionality needs to be decreased to increase computational efficiency, and data quality needs to be enhanced by building meaningful features. This technique makes model accuracy and interpretability and tailoring ML solutions to particular application contexts possible through this technique [ 14 ] .

For the dataset, first, we extracted information from two of the features containing the IP addresses. The first information we extracted tells us if the IP is private or global, and the second information tells us the countries where the IP addresses are located. After that, we removed those IP address columns because they would overfit the model with training data, which is unsuitable for our model. Some more ID columns are also being removed.

After removing the ID columns, a categorical feature named “history” increased the dimensionality problem. For this, the model will become more complex and may capture noise rather than the actual underlying pattern of the dataset, which will cause the model to overfit. So, to mitigate this problem, we also removed that feature. After the above tasks, we did the feature importance test which will decrease the complexity of the dataset and also it will make the dataset more generalized because by doing this test we will select the topmost impactful features for our models and will remove the remaining features.

Figure 1 shows the importance of every feature for binary classification and from that graph, we can say that the top 11 features have the most impact on predicting the target because those features have an importance score greater than 0 but the rest of it is very close to 0 so, we had kept the first 11 features and removed the rest from our dataset. Figure 2 shows the importance of every feature for multi-class classification and from that graph, we can say that the top 18 features are impacting the most to predict the target because those features have an importance score greater than 0 but the rest of it is very close to 0 so, we had kept the first 18 features and removed the rest from our dataset.

In ML, data splitting refers to partitioning a dataset into distinct subsets to facilitate model training, validation, and evaluation. This step is critical for ensuring that an ML model does not simply memorize the training data, a problem known as overfitting, but instead learns to generalize effectively to unseen, real-world data. Proper data splitting helps evaluate the model’s performance on independent data, objectively assessing its predictive capabilities. The following sections discuss the specific data-splitting ratios used in our models and their significance for achieving robust generalization.

We had taken 80% of the total data for training and 20% of the total data for testing. As we use cross-validation, which we will present later, it will randomly split the training dataset into validation and training data. K-fold cross-validation is a resampling method for assessing ML models that involves splitting the data into k equal-sized folds. Each iteration’s validation set is one-fold, while the training set consists of the remaining K-1 folds. A more accurate evaluation of the model’s efficacy can be obtained by averaging the results of this k-times method.

It aids in avoiding overfitting. Moreover, it offers a more reasonable assessment of a model’s generalization ability. Picking K (usually 5 or 10) strikes a compromise between computing expense and the stability of the performance estimate. With K-fold cross-validation, you can get strong accuracy metrics from more enormous datasets without collecting extra validation data [ 28 ] .

In ML, feature scaling is a preprocessing method used to change the range or distribution of data values, guaranteeing consistency across features. For KNN, this stage is essential since it standardizes or normalizes the data to a uniform scale, lowering the variability among features. Eliminating bias resulting from features of different magnitudes, which could skew model predictions, depends on feature scaling. By lowering variations in feature range, techniques such as normalization and standardization help ML models to operate better [ 19 ] . For the feature scaling of the IoT-23 dataset, we have used Min-Max Scaler, as provided below.

Min-Max in ML scaling is a normalizing technique used to rescale traits within a specific range, usually [0, 1]. This approach guarantees that no feature dominates the others and contributes equally [ 5 ] . It is also beneficial in the cases of variable scales or units for the features. The conversion is accomplished with the following formula: where X ′ X^{\prime} is the value after scaling, X X is the original value of that particular observation, X min X_{\text{min}} is the minimum feature value, and X max X_{\text{max}} is the maximum feature value.

4. Practical Deployment, Analysis & Case Studies During the pre-processing of the data, we faced three crucial challenges, which were data volume, class imbalance, and information leakage: Data volume plays a vital role in ML. Our IoT-23 dataset had 21 GB of data with around 60 million observations, making the pre-processing tasks like feature scaling, one hot encoding, and label encoding very slow. Moreover, it made the training process very slow, too, and that’s why, to mitigate these problems, we took a portion of data for binary and multi-class classification, which will not affect the model performance negatively. Also, after doing that, the pre-processing tasks became very fast along with the training process.

In ML, the class imbalance results from an unbalanced distribution of classes in a dataset whereby one class (or a small number of classes) has significantly more instances than others. This usually happens in classification problems when some events or results are rare in relation to others. There was a class imbalance in our dataset consisting of eleven assault kinds or classes; as a result, we removed the classes with the fewest observations and kept seven that had a sufficient amount of data.

In ML, information leakage results from a model inadvertently accessing unrestricted material from the training set, producing poor generalization and unrealistic performance measures and possibly undermining the predicting capability of the model. In our case, after the data pre-processing, when the training of the models just started, we have observed that from the very first epoch, the accuracy is too high, like over 90%, which is not sophisticated because in the very first epoch, no model can be perfect or close to perfect so after getting this kind of output, we had suspected that there is an information leakage which was during the data scaling. Before we knew the problem, we scaled the whole dataset. At that time, the scaler we had used gained access to all the data, which was not supposed to have happened, and we scaled the data according to that. After finding the problem, we split the data. Then, we fit our scaler on the training data and used that scaler to transform our training, testing, and validation dataset. In this way, the scaler was not gaining access to the validation and testing data.

Binary classification represents predicting if an IoT device is being attacked or not which means it has two outputs one is benign and another one is malicious if the device is being attacked it will output as malicious and if it is not, it will output as benign. We had done research work on Binary Classification [ 3 ] where we had used several ML and DL techniques and among those our XGBoost has performed the best with 98.9% Accuracy, 98.5% of Precision, 98.7% of Recall and 98.9% of F1-Score.

Multi-class classification represents predicting the attack type like Okiru, DDoS, etc., and if it is not being attacked then representing it as benign. We proposed two different hybrid models that use voting for classification. In these two models, we combined XGBoost, RF, and KNN for binary classification and combined RF, XGBoost, and AdaBoost for multi-class classification. In the next sections, we will present these methods.

Random Forest (RF) is one of several ensemble methods of ML that offer a versatile approach suitable for regression and classification. The mode of the classes used for classification tasks can be generated by training with a large number of decision trees. This method makes RF quite successful for classification and regression projects and helps lower overfitting [ 24 ] .

Considered a subset of ensemble learning and a ML method included in the gradient boosting framework is extreme gradient boost boosting (XGBoost). Beginning with simple learners, decision tree regularization methods help increase model generalization. XGBoost is computationally efficient; it offers sound processing, perceptive feature significance analysis, and smooth management of missing data. In a study by Chen et al. [ 8 ] , the following statement is mentioned: "Especially in problems with complicated data linkages, XGBoost can reach state-of-the-art performance using this sequential boosting with regularization approach." Using a distance metric, typically Euclidean distance, the KNN algorithm classifies data points according to the majority label of their nearest neighbors; it finds extensive use in non-parametric ML tasks like regression and classification. Although KNN is computationally heavy for big datasets since it must compute distances for every query point, it is popular for its ease of use and effectiveness in uses, including pattern detection and recommendation systems [ 27 ] .

Combining several weak classifiers, the AdaBoost (adaptive boost) algorithm is an ensemble learning method that produces a strong classifier with better accuracy. AdaBoost strengthens the general prediction performance of the model by iteratively changing the weights of training data, hence focusing on the samples that past classifiers misclassified. This method especially helps to raise classification accuracy in many different fields [ 16 ] .

In ML, a hybrid model combines several methods or models to improve predicted accuracy and robustness based on voting. In these hybrid systems, voting functions as a consensus process whereby every model votes on the forecast result, and the final choice is determined depending on a weighted or majority voting system. Particularly useful in classification problems, voting-based hybrid algorithms use the different capabilities of several models to manage heterogeneous and complex data, hence improving prediction accuracy [ 10 ] .

Below (Figures 3 and 4 ) are the flow chart representation of the decision process in our Binary and Multi-class classification models: In Figure 3 one can observe the flow chart of Binary classification and can find out that the pre-processing part is a combination of different steps like Data Analyzing, Missing Data Handling, Categorical Feature Conversion, Feature Engineering, Data Splitting and Feature Scaling. One can also see that for binary classification RF, XGBoost, and KNN. It can also be seen that this model predicts if the device is Benign or Malicious.

5. Performance Evaluation & Extended Technical Observations In Figure 4 it can be found that the pre-processing steps of multi-class classification are the same as binary classification. Still, the models that had been combined inside of the hybrid voting classifier are different which are RF, XGBoost, and AdaBoost. Also during the decision making the model predicts whether it is benign or what type of attack it is.

We have evaluated our models in terms of 4 different scales; F1-Score, Accuracy, Precision, and Recall. Below are the formulas for those metrics: Here; TP stands for True Positive, TN stands for True Negative, FP stands for False Positive and FN stands for False Negative.

We had listed down the evaluation metrics values from the models of our related works in a tabular format where Table I is for Binary Classification and Table II is for Multi-Class Classification. After analyzing the comparison tables (Tables I - II ), we can conclude that our hybrid model for binary classification outperforms all other relevant proposed schemes and models in the literature, in all metrics, Accuracy (A), Precision (P), Recall (R), F1-Score (F1), respectively. For multi-class classification, our hybrid model outperforms all other relevant proposed schemes and models in the literature in all metrics (A, P, R, F1); except RF of Paper [ 21 ] (slightly worse in P and F1), Filtered Classifier of [ 11 ] (slightly worse in A). However, these models are not tree-based, therefore they are not expected to be as scalable and faster as our proposed Hybrid model, which is based on tree-based ML algorithms.

Now, the confusion matrix of the hybrid models of binary and multi-class classification will be described below: From the confusion matrix for binary classification of our hybrid model using the testing dataset provided in Fig. 5 , some valuable insights can be extracted. First of all, majority of the predictions are correct (9,996 for benign and 10,000 for malicious) for both of the classes which means the model is not biased for a specific class. Moreover, we have no FN (type 2 error) which is 0 and as the model’s main target is to detect attacks correctly and it is doing it perfectly, this model will be very much suitable in security applications which is a crucial success for us. Also, no FN led us to very R. Furthermore, the model’s FP (type 1 error) is 4 which led us to a very high P.

On the other hand, Fig. 6 which is the confusion matrix for multi-class classification of our hybrid model using the testing dataset, also gives us some valuable insights. First of all, most of the predictions are aligned correctly which is indicated by the diagonal values. It also tells us that the model is not biased. Moreover, if we analyze class-wise performance then we can see Attack, C&C, C&C-HeartBeat, DDoS, and Okiru are almost perfectly predicted and PartOfAHorizontalPortScan has the highest misclassification among the other attack types which is 73 but this number is very low because only 3.6% of the total number of observations for that class are being predicted incorrectly. Furthermore, the average FN (type 2 error) and FP (type 1 error) are very low, which is 0.74% and 0.37%, respectively, which indicates that as a multi-class classification model, it is able to predict multiple attack types almost perfectly and is very much suitable for IDS in IoT.

The accuracy curve provided in Fig. 7 for binary classification shows the training and cross-validation accuracy curve using the training dataset. From the curve, it can be said that the training and cross-validation accuracy started from around 99.94% and 99.9% respectively and it gradually increased to around 99.98% for training and 99.97% for cross-validation accuracy. The graph also indicates no spike, so the validation and training curves converge smoothly. Moreover, the validation accuracy curve is not going downward at any point, so there is no sign of model overfitting, which is excellent! The accuracy curve provided in Fig. 8 for the multi-class classification shows the training and cross-validation accuracy curve using the training dataset. From the curve, it can be said that the cross-validation accuracy started from around 41%, but the training accuracy started from 99.9%. Gradually, after so many training iterations, the cross-validation accuracy slowly climbed to the accuracy of around 99% but training accuracy was between 99% and 99.9%. The graph also shows no spike in the validation or training curve, so it is converging smoothly, also, there is no point when the validation accuracy started to decrease compared to the training accuracy so there is no sign of model overfitting, which is also great! a : Calculated by using the precision and recall of the values at the binary classes provided in [ 21 ] . b : Calculated by using the average of the values at normal and attack cases provided in [ 11 ] .

a , c , and e : Calculated by using the average of the values at the multi-classes provided in [ 21 ] , [ 25 ] , and [ 1 ] , respectively. b : Calculated by using the average of the values at normal and attack cases provided in [ 11 ] . d : Calculated by using the average of the values at DDoS, C&C, and PortScan attacks provided in [ 20 ] . The rapid expansion of the Internet of Things (IoT) has increased its vulnerability to sophisticated cyber threats, necessitating robust and scalable Intrusion Detection Systems (IDS). This study introduces a hybrid approach to mitigate these threats, leveraging the IoT-23 dataset. Our hybrid classifier models integrate tree-based algorithms—Random Forest (RF), XGBoost, and AdaBoost for multi-class classification, and RF, XGBoost, and K-Nearest Neighbors (KNN) for binary classification. These models achieved exceptional performance, reaching 99.99% accuracy, precision, recall, and F1-score across all metrics for binary classification, and 99% for each metric in multi-class classification. This performance surpasses existing binary classification results and improves upon some multi-class metrics (as detailed in Tables I and II). The scalability of our approach stems from the use of tree-based machine learning models in conjunction with a large dataset, enabling it to effectively handle the complexities of IoT environments. The superior performance of our hybrid models compared to those in Table I and Table II demonstrates their suitability for IoT IDS.

Future research will focus on real-time implementation, further feature selection optimization, adaptability to emerging cyber threats, and the integration of explainable AI to enhance transparency and trust in cybersecurity decision-making. Harvested Online Documentation & Reference Sources • https://arxiv.org/html/2502.12382v1

Extracted Research Figures & Simulation Topologies

Total 3 diagrams and telemetry visual outputs extracted directly from the complete technical documentation.

Figure 1: Security Architecture, Packet Inspection & Threat Simulation Diagram for Hybrid Intrusion Detection System For Smart Home Networks (Page 2)
Figure 1: Security Architecture, Packet Inspection & Threat Simulation Diagram for Hybrid Intrusion Detection System For Smart Home Networks (Page 2)
Figure 2: Security Architecture, Packet Inspection & Threat Simulation Diagram for Hybrid Intrusion Detection System For Smart Home Networks (Page 3)
Figure 2: Security Architecture, Packet Inspection & Threat Simulation Diagram for Hybrid Intrusion Detection System For Smart Home Networks (Page 3)
Figure 3: Security Architecture, Packet Inspection & Threat Simulation Diagram for Hybrid Intrusion Detection System For Smart Home Networks (Page 4)
Figure 3: Security Architecture, Packet Inspection & Threat Simulation Diagram for Hybrid Intrusion Detection System For Smart Home Networks (Page 4)

Breach Emulation & Defense Validation Architecture

Standardized testing pipeline mapping threat vectors directly into simulated inspection engines.

🎯 Threat Emulation
(AttackIQ / SafeBreach)
→
🔬 Web Security Audit
(Burp Suite Pro)
→
🖧 Virtual Perimeter
(Cisco Packet Tracer)
→
💥 Exploit Verification
(Metasploit Engine)
→
📊 Human Layer
(KnowBe4 Training)

Sample Simulation Code & Telemetry Log

Automated tool orchestration script and command window outputs for Hybrid Intrusion Detection System For Smart Home Networks.

hybrid_intrusion_detection_system_for_smart_home_networks_audit.py — Cisco Packet Tracer & Network Defense Simulation
! Cisco Packet Tracer / Edge Router Defense Configuration for Hybrid Intrusion Detection System For Smart Home Networks enable configure terminal hostname Edge-Security-GW
! Define Extended Access List to Block Malicious Traffic ip access-list extended SECURE_PERIMETER_ACL remark Block Inbound Telnet and Unencrypted Services deny tcp any any eq 23 log remark Permit Verified Web SSL Traffic permit tcp any any eq 443 permit tcp any any eq 80 remark Mitigate ICMP Flood and Ping Sweeps permit icmp any any echo-reply deny icmp any any echo log deny ip any any log
! Apply ACL to Ingress Interface GigabitEthernet0/0 interface GigabitEthernet0/0 ip access-group SECURE_PERIMETER_ACL in no shutdown end write memory
Command Window — Cisco Packet Tracer CLI & ACL Filter Log
Edge-Security-GW# show ip access-lists SECURE_PERIMETER_ACL
Extended IP access list SECURE_PERIMETER_ACL (Cisco Packet Tracer) ──────────────────────────────────────────────────────────────────────── 10 deny tcp any any eq telnet log (142 matches) [Probes Dropped] 20 permit tcp any any eq 443 (18402 matches) [TLS 1.3 Traffic Permitted] 30 permit tcp any any eq 80 (4812 matches) 40 deny icmp any any echo log (524 matches) [Flood Mitigated] 50 deny ip any any log (38 matches) [Default Implicit Deny Rule] ──────────────────────────────────────────────────────────────────────── [✓] Packet Tracer Verification: 0 Unsanitized Ingress Leaks on Gi0/0
Cisco Packet Tracer Security Gateway Performance Table
$ >> verify_packet_tracer_state --device 'Edge-Security-GW'
Interface PortNetwork ZoneFilter AppliedTraffic ProcessedFirewall Decision
Gig0/0 (WAN)Untrusted ExternalExtended ACL 10124,810 PacketsINSPECTED & FILTERED
Gig0/1 (DMZ)Public Web ServicesPort 443 Only18,402 PacketsPERMITTED
Gig0/2 (LAN)Corporate Users802.1X Port Security142 ProbesDENIED & QUARANTINED
💬