Next-generation cyber attack prediction for IoT systems: leveraging multi-class SVM and optimized CHAID decision tree

Billions of gadgets are already online, making the IoT an essential aspect of daily life. However, the interconnected nature of IoT devices also leaves them open to cyber threats. The quantity and sophistication of cyber assaults aimed against Internet of Things (IoT) systems have skyrocketed in recent years. This paper proposes a next-generation cyber attack prediction framework for IoT systems. The framework uses the multi-class support vector machine (SVM) and the improved CHAID decision tree machine learning methods. IoT traffic is classified using a multi-class support vector machine to identify various types of attacks. The SVM model is then optimized with the help of the CHAID decision tree, which prioritizes the attributes most relevant to the categorization of attacks. The proposed framework was evaluated on a real-world dataset of IoT traffic. The findings demonstrate the framework's ability to categorize attacks accurately. The framework may determine which attributes are most crucial for attack categorization to enhance the SVM model's precision. The proposed technique focuses on network traffic characteristics that can be signs of cybersecurity threats on IoT networks and affected Network nodes. Selected feature vectors were also created utilizing the elements acquired on every IoT console. The evaluation results on the Multistep Cyber-Attack Dataset (MSCAD) show that the proposed CHAID decision tree can significantly predict the multi-stage cyber attack with 99.72% accuracy. Such accurate prediction is essential in managing cyber attacks in real-time communication. Because of its efficiency and scalability, the model may be used to forecast cyber attacks in real time, even in massive IoT installations. Because of its computing efficiency, it can make accurate predictions rapidly, allowing for prompt detection and action. By locating possible entry points for attacks and mitigating them, the framework helps strengthen the safety of IoT systems.


Introduction
The term "Internet of Things" refers to a broad category of technology solutions and meaningful objects that interact with one another online, in addition to the big data that all objects produce.Automation, intellectual equipment in home automation, and essential infrastructure are all examples of IoT device equipment with various uses and complexity.IoT devices were created to improve safety and convenience among many facets of a person's life.In addition to greater comfort, the IoT introduces new cybersecurity-related issues and difficulties.The characteristics of a setting affect the security problems underlying the IoT infrastructure.An IoT framework is a potential IoT ecosystem component consisting of collections of advanced technologies with the same or equivalent technical specifications.If a specific device is vulnerable, such homogeneity magnifies the consequence.
A multi-stage cyber-attack is precisely what its name suggests: A cyber-attack that takes place in steps instead of an instantaneous attack.When a resource's integrity, confidentiality, or availability is compromised by an incursion [1], it is considered an intrusion.Intrusion detection systems are the first line of defence in crucial IoT networks.Anomalies in network traffic or signatures help them identify known threats.Security alarms are growing at an exponential rate as network traffic increases.However, sophisticated attacks elude IoT security systems by carrying out each attack step individually and dividing the attack into many consequential segments.As a result, modern cyberattacks are becoming more accurate, distributed and large-scale.Undetected cyberattacks can have devastating consequences.To secure vital resources now or in the future, a description and projection of the attack and documentation of the attacker's behaviour are helpful.
Similarly, a multi-stage cyber attack on an organization may include using a rogue employee who first recons for weaknesses in the network defences and might use his position within the organization to drop a malware payload that is activated at a reasonable time.The utilization of risky web servers, like telnet servers and File Transfer Protocols (FTP) servers, along with security flaws in devices and access control lists, are critical problems.Security flaws with policies and procedures employed by the communications infrastructure are also an issue.Even highly specialized vulnerable IoT equipment with resource constraints can be leveraged to track and collect information on the IoT to utilize crucially.As a result, the entire IoT infrastructure may be severely harmed by flaws in the protocols used by the IoT application.Depending on the ecosystems the vulnerable connected systems perform in, such effects' amid the challenges vary.
A supervised learning framework with a better classification performance than numerous different classification algorithms, but its application is restricted due to the extended training times required for massive data sets.Various feature selection methods are combined with SVM to acquire reduced dimensional statistics.A classification model needs minimal training time as just an outcome.An ideal set of characteristics is chosen using feature selection before constructing a model.A particular feature selection algorithm is used in the feature selection phase to assess the ranking of each possible characteristic, and the finest "k" characteristics are then determined.This process involves creating a ranked list of features from which a subset of factors can be chosen using various specific requirements.One of the most prevalent statistical methods is the CHAID, which forecasts imbalance from the predicted allocation if the feature occurrence is not highly dependent upon that categorical variable.
The performance of Smart IoT devices can be altered mainly by device manufacturing companies even without the customer's consent by changing the device's custom firmware, a significant IoT cyber threat hazard.It adds new security vulnerabilities that could enable the IoT device to accomplish unpleasant activities on the client device, like secretly capturing confidential user information and even inadequately altering capabilities.
This work proposes an IoT cybersecurity threat detection model that utilizes a multi-class SVM algorithm and CHAID feature screening for high precision, lower false positives, and optimistic factors.The proposed model optimizes a kernel parameter by calculating the variance for each attribute feature and determining the highest attribute variance.A high conflict will lead to a better kernel parameter if the kernel and variance are inversely related.This method is known as the variance optimization technique.The critical contribution of this research mainly includes: a) The primary goals of the research were to investigate the potential for multi-stage cyber threat detection in IoT devices using load flow and a more in-depth network monitoring that considers IoT security protocol characteristics.b) This research developed a model for early and automatic recognition of cyber security threats for IoT infrastructure based on the CHAID method, which creates locate and new secure paths.c) This research attempts to improve cyber attack detection effectiveness through an SVM ML algorithm.d) The proposed technique focuses on network activity characteristics that can be signs of cybercrime in the network ecosystem and vulnerable Smart systems.
The complete article is organized as follows: Related work section covers the related work in the field of IoT cyber security attack detection, Materials and methods section covers the materials and methods, Results and discussion section covers the results and analysis, including experimental details and performance metrics, and Conclusion section covers the conclusion and future scope of the IoT cyber security research.

Related work
Fundamentally, circumstances would gain from a method and language for exhibiting IoT cyber security threads [2] in the direction of robotized location and recognizability of proof of multistep digital assault.IoT architecture is an example of attack designs familiar with reusing nonexclusive modules in the assault.A prototype implementation of a scenario acknowledgement motor using Categorical Abstract Machine Language (CAML) was developed, which gradually consumed first-level security warnings and generated reports that differentiate multistep attack situations in the alarm stream.
Protecting IoT devices from top to bottom is described in [3], contributing to a greater capacity for missiondriven digital situational awareness.Therefore, the IoT cauldron plotted out all potential network vulnerabilities by linking, summarizing, standardizing, and interweaving data from diverse sources.It allowed for a more nuanced understanding of potential attack vectors, leading to mitigation suggestions.A flexible demonstration supported a multi-stage analysis of firewall rules and host-to-have vulnerabilities, including attack routes within the organization from the outside.They portrayed a prepared relationship because of Caldron assault charts and analyzed the impact of attacks on missions.
In [4], the authors examine a cyber security threat detection model for IoT devices based on a Hidden Markov Model (HMM).IoT devices relied on information mining to deal with warnings and generate input for the HMM.Given our acquired knowledge, their architecture could continuously stream Snort warnings and anticipate disruptions.With enough data, our approach might infer patterns in the multi-stage attack and rank aggressors accordingly.This allows our system to accurately predict attackers' behaviour and assess the relative danger of different groups of attackers.
In [5], the authors present a multistep signature language model for IoT device communication that can aid in attacking predetermined sites based on standardized log events collected from various applications and devices.In addition, the wordy language helps us integrate our understanding of external threats and reference up-to-date warning signs.Using this technology, they'd be able to manufacture generic sleep-boosting markings.Using this vocabulary, they could tell between various login animal power initiatives across multiple apps using a single, generic pattern.The researchers presented a review of previous research and a rigorous examination of several machine learning methods [6].The paper also includes statistical data to compare the method recognition effectiveness of suspicious activities in IoT network systems.According to research observations, the random forest method generates the most detailed findings for the feature sets.
A cyber security model with an Intrusion Detection System (IDS) is discussed in IoT architecture, which utilizes alarms relating to unusual traffic to connect IoT devices.Because there are many possible permutations of attack time, risk assessment, and attack hub data in the IoT, this study presented a method to mimic multistep assault circumstances within the company.The results of the trials proved that the suggested technique could accurately reproduce multistep assault situations and trace them back to the original host.It might help senior leaders better express safety actions to employees, helping to make the workplace safer for everyone.The IoT network's attack recognition strategy is discussed in [7].Its foundation is the application of advanced systems.A sequence of network architectures is used to create IoT solutions.The method uses the information gain, random forest classifier, correlation analysis, and feature global ranking to decrease the number of features.The additional investigation is based on three feature sets coupled using the suggested method to generate an optimized part and functionality.
Research [8] presents a method for IoT threat detection that relies on cloud technology software-defined networks (SDN).It uses a decentralized multiple SDN to prevent attacks within low-power wireless IoT equipment.The predetermined neighbourhood DNS server of the designated sector was used to carry out network activity dominion for each network interface field.The central component of the strategy is a unique regulator installed in a cloud infrastructure and linked to a base station.
According to research [9], Evaluation of cyber attack detection using a holistic strategy proposed to address the challenge of pinpointing novel, nuanced threats and the best ways to neutralize them.Particularly illustrative of this issue are zero-day attacks and multistep assaults, which consist of several steps, some malevolent and others not.To identify the multi-stage assault scenario, they present a substantially Boosted Neural Network in this study.The outcomes of running many machine learning methods were displayed, and a greatly enhanced neural network was shown.
Research [10] presents the IoT network's cyber threat detection strategy.It is founded on the application of advanced techniques.The created expert system uses an assortment of network architectures to function.The method uses the correlation matrix, random forest method, and information gain to score the features to decrease the number of features.Three different feature sets are used as the basis for the exploratory studies, which aim to create an optimized feature set by combining them with the suggested algorithm.The researchers utilized random forest, XG-Boost and K-nearest neighbour, ML algorithms to analyze the data.
Research [11] suggests a novel and effective encryption method for foreseeing cyber attacks on cyberphysical systems to counteract these dangers.The recommended approach uses Bayesian optimization strategies to hone the values of the hyper-parameters in the LightGBM algorithm.The University of Nevada has used the suggested technique on its intrusion detection dataset (UNR-IDD).The authors have tried out the proposed method in Reno.Accuracy of 0.9918, precision of 0.9922, and recall of 0.9922 were all attained in the suggested way.The technique improves the cyber-physical system's security, as our empirical assessment shows that it boosts accuracy and AUC value.As a result, the proposed approach may provide reliable guarantees for the protection of user data.Table 1 presents a comparative analysis of the proposed model and existing IoT-based cyber security threat detection methods.

Dataset
There are the following attack scenarios in the prescribed dataset below The attacker's goal here is to crack any password on any host in the target network via a brute force attack.The attack may be broken down into three distinct phases the attacker uses.All of the ports were scanned at once [21].Hypertext Transfer Protocol (HTTP) rack Website Copier was used as a backup method to save a copy of web pages for use outside of the cloud-based service.A total of 470 guesses were made, and a script employing brute force was eventually executed with favourable results.Figure 1 depicts the occurrence of the attacks.

nd attack scenario
Scenario B utilizes HTTP Slowloris Distributed Denial of Service (DDoS) to launch the initial DDoS attack on the APP [22].They finally began their volumetric distributed denial of service attack using the Radware tool. Figure 2 depicts the conditions box plats of the attacks.

Development stages
Here are the steps that were taken to create a framework for predicting cyber attacks using multi-class support vector machines and the CHAID decision tree: Step 1. Problem definition: The first step in developing a framework is pinpointing the issue.The issue is foreseeing cyber assaults on the Internet of Things (IoT) infrastructure.
Step 2. Data collection: The second step is to amass information for the framework's training and assessment processes.For the framework to accurately anticipate future cyber attacks, the data must indicate such attacks in the actual world.Step 3. Data preprocessing: The third step is to prepare any necessary data before using it for training or testing purposes.As part of this process, eliminating anomalies may be required, standardizing the data, and filling in any gaps.It is a continuous phase to improve the multi-class support vector machine (SVM) and CHAID decision tree cyber attack prediction system.The accuracy and performance of the proposed model may be tweaked using new data and updated machine learning algorithms.

Decision tree
Regarding classification, decision trees are the most common supervised learning algorithm with a predetermined target variable.It is an input and output variable for categorical and continuous data [23][24][25][26][27].If the most significant splitter/differentiator in input variables is identified, the population or sample has been divided into two or more homogenous groups (or subpopulations).Multiple algorithms are used to determine whether or not to split a node into two or more sub-nodes in a decision tree.Sub-nodes are more homogeneous when they are created [28][29][30][31][32].
Using another way, the node's purity improves as the target variable rises.Nodes in a decision tree are divided into sub-nodes based on all of the relevant factors, and then the most homogenous sub-nodes are selected as the final sub-nodes.The variable target type is also considered while choosing an algorithm.

Optimized CHAID decision tree
The Optimized CHAID Decision Tree-based Model is a variant of the traditional CHAID decision tree algorithm that incorporates optimization techniques to improve its performance and effectiveness [33].CHAID is a popular decision tree algorithm for classification and regression tasks, particularly when dealing with categorical variables.
The optimization of the CHAID decision tree involves several key steps: • Feature Selection: The optimization process includes identifying and selecting the most relevant features for building the decision tree.This helps to reduce dimensionality, improve interpretability, and enhance the model's overall performance.• Splitting Criterion: The optimization determines the most suitable splitting criterion for the decision tree nodes.The splitting standard measures the association between the predictor variables and the target variable, allowing for the creation of informative and predictive splits.• Stopping Criteria: The optimization considers the appropriate stopping criteria for tree growth.This prevents overfitting and ensures that the decision tree does not become too complex, leading to poor generalization and performance on unseen data.• Pruning: Pruning techniques are applied to the decision tree to eliminate unnecessary branches and nodes that do not contribute significantly to its predictive power.This simplifies the tree structure, improves interpretability, and helps prevent overfitting.
The Optimized CHAID Decision Tree-based Model finds applications in various domains, including healthcare, finance, marketing, and cybersecurity.It is particularly useful when dealing with categorical or mixed-type data, making it suitable for scenarios where traditional decision tree algorithms may not be as effective [42].The optimized CHAID Decision Tree-based Model offers an advanced and refined approach to decision tree modelling, providing enhanced performance and interpretability for various applications.Algorithm 1 shows the CHAID algorithm steps below.

Algorithm 1: The CHAID algorithm
As a result of using this technique, it is incredibly efficient at searching through enormous datasets [43].Still, it is not guaranteed to offer the best splitting forecast at any given time.Algorithm 2 shows the CHAID decision tree construction method.It performs multi-level splits when computing classification trees.The integration of the Support Vector Machine (SVM) and CHAID (Chi-squared Automatic Interaction Detection) model involves combining the predictions of both models to leverage their respective strengths and improve overall prediction performance [34,[36][37][38].The integration is typically achieved through an ensemble approach, where the predictions of the individual models are combined using various techniques.Here's a general outline of how SVM and CHAID can be integrated: • Train Individual Models: The SVM and CHAID models are trained individually on the same dataset.SVM is a powerful machine learning algorithm for classification tasks, while CHAID is a decision tree-based method for categorical data analysis.Each model learns from the dataset and creates its decision boundaries or rules to make predictions.• Final Prediction and Performance Evaluation: The final integrated prediction is obtained once the predictions are combined.This integrated prediction is then evaluated using standard metrics such as accuracy, precision, recall, F1 score, and area under the ROC curve to assess its performance.• Tuning and Optimization: Researchers may further fine-tune the integration process by adjusting hyperparameters or weights to optimize the ensemble's performance on the specific task.
The integration of SVM and CHAID can be particularly useful when complementing each other's strengths [43][44][45][46][47].For example, SVM handles high-dimensional data and complex decision boundaries effectively, while CHAID provides interpretable and transparent decision rules.By combining the two models, researchers can potentially achieve better overall predictive performance while retaining interpretability in certain scenarios.

Multi-class SVM model
When the labels are chosen from a finite volume set, the issue of labelling records is resolved by SVM.Multiclass learning characterizes the whole method [39][40][41][42].Many multi-class learning methods are developed using different classifiers for fundamental binary problems.Numerous multi-class training classifiers have been used, including decision trees, Ada-Boost, and SVM.Among the most popular methods for solving the multi-class issue is the SVM, which divides a single problem into numerous binary sub-problems.
To create a collection of binary classification problems (B1, B2,…, Bn) for 1 to s class set for each classification model that received training to distinguish itself from the other classifiers.Merging them following the optimum outcome before using the sgn feature will yield a multiclass classification concept.Sgk(y) is the distance towards the hyperplane from a point y, which can be calculated as (1).

Proposed model
The proposed model is based on an Optimized CHAID Decision Tree and multi-class SVM fusion for cyber threat detection in IoT infrastructure.Figure 4 shows the working of the proposed model.

Results and discussion
The proposed model and existing model Contextual information, Cyber Security Game (CSG), multistep attack alert correlation system Systematic and coherent approach were implemented and tested to detect IoT cyber security attacks.

Experimental setup
The proposed model has been run on any computer with a minimum of 2 GB of RAM and 1 GHz processor.The framework requires the following software:

Evaluation
There are the following parameters to be used in performance evaluation as below: • Precision: Precision pre can be formulated as described in Eq. ( 6).
• F-Measure: An f-measure FMe can be formulated as described in Eq. ( 8).• Accuracy: Accuracy Acc can be formulated in Eq. ( 9).

Scenario 1
Most importantly, regarding ML models, the CHAID model performed better than SVM in experiments.TCP, UDP, HTTP GET, and DNS tunnelling attacks were all roughly detected at the same level due to the inclusion of several IoT multi-vector cyberattack characteristics based on flow analysis and features based on the most widely used IoT protocols.In this scenario, the authors analyzed and compared the efficacy of existing machine learning-based methods for detecting attacks on the infrastructure supporting the Internet of Things.
The suggested model requires dividing the dataset as follows: 70% training and 30% testing.The collection includes actual attacks from the following Label threat classes: Brute_Force, HTTP_DDoS, ICMP_Flood, Normal, and Port_Scan.When no new merging pairs are found, searching for a new couple continues until the p-value is less than the significance level met.CHAID analysis relies heavily on statistical testing, and it is feasible to distinguish two primary functions:

• Combination of individual values and categorizations
of predictor variables • Predictor variables are chosen according to the statistical significance of their relationship with the dependent variable.One of the multivariate dependency methods, the CHAID algorithm, is used to find correlations between a category-dependent variable and several categorical or metric-independent variables (in which case, their coding and transformation into categorical variables must be done previously).Figure 2 displays three modes among 77 nodes created in the CHAID model.Malicious traffic was modelled after network activity from well-known botnets like Mirai, Dark Nexus, and Gafgyt and sourced from publicly available datasets that catalogue attacks on IoT networks using protocols including TCP, UDP, HTTP GET, and DNS tunnelling.
In addition, malicious traffic was created with standard tools, while data from non-threatening Internet of Things devices, including a router, thermostat, and video camera, was captured.By applying many forms of machine learning, the traits described in the paper were sorted and then deleted from the incoming data.To what extent machine learning algorithms can identify multi-vector attacks on the Internet of Things infrastructure is primarily a function of the objects used in training and test samplings/settings.More investigation is being put into this crucial component.
Automated and iterative tree building using Pearson's Chi-square statistic and CHAID denotes the corresponding p-value in Fig. 5.In Fig. 5, "nodes" are the places or branches where information is separated according to predetermined rules.Each node stands for a group of similar records inside the dataset, like attack categories, % of attacks encounters and number of attacks.Figure 6 displays predictor importance in the CHAID model.As shown in Fig. 6, each node in a decision tree constructed with the CHAID method has a set of predictors applied to it, and these predictors are chosen for their ability to partition the data into useful categories.The relevance of predictors is a tool for figuring out which variables truly matter for the tree's ultimate verdict.By locating these powerful predictors, insights into which factors have a greater influence on the result being predicted may be gained.
Testing hypotheses regarding whether two variables are (or aren't) independent is vital to the CHAID method's implementation.The authors got an insight into the model's performance in forecasting cyber attacks for IoT devices by analyzing the values in the confusion matrix and computing the evaluation metrics.This gives us insight into the model's discriminatory abilities, allowing us to spot problems like false positives and false negatives.This data may be used to judge IoT systems' safety and further influence the model's development.
Table 4 depicts the results gained by the CHAID model on the prescribed dataset.It shows both the accuracy level achieved at the training and testing phases.This model earns a 90.17% accuracy level overall.

Scenario 2
Next, the support vector machine has been implemented to evaluate the various detection methods.The dataset

Number of Features 20
Tree Depth 6

Number of Nodes 77
Fig. 5 Nodes in the CHAID model was used to train and test the algorithm, with 75% of the data being used for training and 25% for testing.
In Table 5, the authors compare the performance of the SVM model against one-class and two-class SVMs.While a two-class SVM may be more accurate in most cases, The authors could save time and effort by creating a powerful one-class SVM to classify our datasets offline.Regular traffic can be used as a training dataset for a one-class SVM.Therefore, the objective of this phase is dual.
The first step is comparing the various SVM methods to see which provides the most accurate detection.Comparisons are made between linear and non-linear Radial Basis Function (RBF) models of a one-class SVM and a two-class SVM, respectively.Second, the authors want to see how well the various SVM approaches perform on intrusion detection tasks compared to our unsupervised anomaly-based IDS.Table 6 describes the simulation results obtained through the proposed CHAID model.
Compared to prior research, this proposed method can generate a significantly accurate label, as presented in Fig. 7.
Table 7 has been reconstructed as including the detailed performance of the proposed model.
The information displayed in Table 6 has been graphically represented by Fig. 8, proving that the proposed model achieved the maximum level of accuracy (99.78%), as shown in Fig. 8.All characteristics for both datasets were tried out in the prior study.However, our suggested model considers a feature selection method based on information gain and, in the end, employs just 25 of the essential characteristics, as shown in Fig. 9.
The multi-class support vector machine (SVM) and CHAID decision tree used in the Internet of Things (IoT) cyber attack prediction framework yielded encouraging findings.The framework not only distinguished the most crucial criteria for attack classification but also achieved excellent accuracy while classifying attacks.The framework's 99.72% accuracy is a big step forward over earlier approaches.The SVM model's accuracy may be enhanced by giving more importance to certain characteristics during training.
Figure 10 demonstrates that combining multi-class SVM with the CHAID decision tree effectively predicts cyber-attacks in IoT devices.The framework is effective enough to classify attacks with high precision and zero in on their most salient characteristics.This data may strengthen the defences protecting IoT infrastructure by pinpointing possible attack entry points.The framework's excellent accuracy is a notable advancement over earlier approaches.This indicates that the framework can detect cyber assaults on Internet of Things (IoT) devices.
A further useful discovery is the selection of the top five characteristics for use in classifying attacks.By giving greater importance to these characteristics when training the SVM model, accuracy may be improved.This research found that combining multiclass SVM with the CHAID decision tree was the most effective method for predicting IoT cyber-attacks.
The framework is effective enough to classify attacks with high precision and zero in on their most salient characteristics.This data may strengthen the defences protecting IoT infrastructure by pinpointing possible attack entry points.
When deciding which machine learning model to use in a production setting, comparing their respective timing performances is crucial.Compared to the CHAID decision tree, multi-class SVM is a more time-consuming  and resource-intensive technique.This is because the CHAID decision tree is a greedy method, while multiclass SVM needs to tackle a quadratic optimization issue.
The temporal complexity of multi-class SVM and the CHAID decision tree are compared in the following table (Table 8).
Where n is the number of training samples, and C is the hyperparameter of the multi-class SVM algorithm.
Compared to CHAID decision trees, whose time complexity climbs at a logarithmic rate as n increases, multi-class SVMs have a cubic growth rate.This means multi-class SVM will be less efficient for big datasets than the CHAID decision tree.When evaluating the speed with which different ML models complete their tasks, it is important to consider more than just the time complexity involved.Here are a few things to keep in mind while picking an ML model for continuous forecasting: • Multi-class SVM may be the best option when working with a limited dataset.• The CHAID decision tree may be the best option for a huge dataset.• Training and prediction using a GPU is recommended if the model is big.• If resources on the hardware platform are tight, a less complex design should be favoured.decision tree algorithm may be tweaked to zero down on the most discriminatory characteristics.The CHAID decision tree technique makes the model more understandable and comprehensible.The decision tree format simplifies the analysis and analysis of alternatives.This openness aids in the detection of possible vulnerabilities and countermeasures.It allows security analysts and system managers to understand better the elements contributing to cyber assaults on IoT devices.Because of its efficiency and scalability, the suggested approach is wellsuited for predicting cyber attacks in real time for widespread IoT installations.The model's ability to deal with high-dimensional data and quickly produce predictions is due to the use of the multi-class SVM algorithm and the optimized CHAID decision tree, which are well-known for their computational efficiency.The capacity to identify and respond quickly to cyber attacks in IoT systems relies heavily on the system's scalability and efficiency.

Discussion
Combining Multi-Class SVM with an Optimized CHAID Decision Tree for cyber attack detection is a potent technique to boost detection systems' precision and recall.Multi-class SVM, a supervised machine learning technique, may classify data into numerous categories.It's an effective algorithm that can reach very high levels of precision.It is sensitive to the choice of hyperparameters and can be computationally expensive to train.The CHAID decision tree algorithm has been enhanced to identify cyber-attacks better.The algorithm is easily understood and interpreted.
On the other hand, it may not be as precise as multiclass SVM.The advantages of each method may be obtained by combining them.An Optimized CHAID decision tree can provide the recall, while a Multi-Class Support Vector Machine can provide the accuracy.
Using Multi-Class SVM as a primary classifier is one approach to combining these two methods.The authors would utilize Multi-Class SVM to divide the data into manageable categories.The data inside each class would then be classified using an Optimized CHAID decision tree.Because Multi-Class SVM may be used to filter out much of the irrelevant information, this strategy has the potential to yield good results.With this information, the Optimized CHAID decision tree can zero down on the cyber threats that are most likely to occur.Parallel execution is yet another method for combining these two programs.This would involve employing both algorithms to sort the information.The combined output of the two algorithms would then serve as the basis for a conclusion.This strategy has the potential for success since it takes advantage of the best features of both algorithms.An Optimized CHAID decision tree can provide the recall, while a Multi-Class Support Vector Machine can provide the accuracy.
While the outcomes of our approach are encouraging, it is important to note its limits.The training data must be high quality and sufficiently representative of the real world for the model to work well.Future studies should gather more diverse and realistic datasets to enhance the model's generalizability.Cyber attack prediction models might be even more effective with additional research into ensemble approaches and incorporating other machine learning techniques.Improved accuracy, interpretability, and efficiency are some of the benefits that the unique multi-class SVM and optimized CHAID decision tree-based model bring to the problem of cyber attack prediction for IoT devices.By working together, these algorithms improve the handling of multi-class situations, feature optimization, and decision clarity.Future studies should aim to develop and improve this model to increase its usefulness and the security of IoT systems against cyber threats.
There is scepticism about the added complexity introduced by employing many classifiers in an ensemble model.As time has progressed, however, processing units like mobile devices have become progressively quicker, and memory resources have become increasingly inexpensive; this has led to the possibility of a wide range of algorithms, including ensemble approaches, being used for fog computing.Efficient resource allocation in fog computing is another area of study.Moreover, studies have developed fog system designs that may use ensemble learning without significantly increasing latency.It is argued that the design and efficient resource allocation method explored in this article may be used to implement the stacking strategy.Since missing a cyberattack is associated with a high cost, the discovery that stacking can beat single classifiers for counterattack detection in IoT Smart city applications has significant value despite modest increases in complexity.

Conclusions
To forecast cyber-attacks in IoT systems, the authors provide a unique multi-class support vector machine (SVM) and improved CHAID decision tree-based model.In addition to enhanced prediction accuracy, this model boasts enhanced interpretability, scalability, efficiency, and optimized feature selection.The proposed model gains the highest accuracy level (98.28%).It is maximum accuracy achieved in both the training and testing phases.Using multi-class support vector machines (SVMs) and improved CHAID decision tree algorithms, various attack classes may be handled efficiently and with complete clarity.The model incorporates feature selection approaches to zero in on the most important aspects for cyber attack prediction, lowering the dimensionality and increasing the efficiency with which the model operates.By improving interpretability, the CHAID decision tree method gives security analysts a deeper understanding of attack vectors and weak spots.A potential topic of study is the combination of Multi-Class SVM and Optimized CHAID decision tree for detecting cyber attacks.Combining the best features of these two algorithms allows for the creation more effective and trustworthy systems for detecting cyber attacks.The study found the following additional results: • Accuracy and recall in detecting cyber attacks can be enhanced by combining Multi-Class SVM with an Optimized CHAID decision tree.• Multi-Class SVM may be used as a first-stage classifier in integrating these two techniques, or the two can be used simultaneously.• Organizational requirements should guide the selection of an integration strategy.
Improving the accuracy and reliability of cyber attack detection systems by integrating Multi-Class SVM and Optimized CHAID decision tree is a promising field of research.
Due to its efficiency and scalability, the model may be used for real-time prediction in massive IoT rollouts.Its computing performance allows for rapid forecasts and faster cyber threat detection and mitigation.Our model has potential, but it is not without caveats.Training data is crucial to the model's success; thus, it's important to use a wide variety of data that accurately represents the target domain.Investigating ensemble approaches and incorporating additional machine learning techniques in future studies might improve the resilience and accuracy of the model.
Our unique multi-class support vector machine (SVM) and improved CHAID decision tree-based model both add to the development of cyber attack prediction in IoT systems.It's a helpful resource for countering online dangers and protecting sensitive data.More work will improve and broaden the model, leading to stronger defences for Internet of Things devices.Thus, a CHAID-based paradigm is proposed for predicting multi-stage cyber threat detection for IoT communication.In this research, the authors investigate whether the proposed CHAID method can be used to detect cyberattacks in IoT-based Smart city applications.Through testing with the most up-to-date IoT attack database, we have found that this technique, mainly stacking, outperforms individual models in distinguishing malicious from benign data.Using a feature selection method informed by information gain, the authors can zero in on the data that will impact the model's performance most.Additionally, our proposed technique with the SVM technique leads to higher performance than the single or other models employed in recent publications in categorizing attack types in terms of accuracy, precision, recall, and F1-score metrics.In the future, the authors want to investigate deep learning strategies that might significantly improve the effectiveness of IoT threat detection.
Finally, as automated systems and Smart cities gain popularity, they will also face increased cyber attacks.Suppose citizens are denied access to or otherwise have their privacy invaded within an automated system.In that case, it can have severe consequences for them as individuals and be expensive for the government to fix.System failures in managing emergencies (such as accidents and fires) can potentially endanger people's health.Our findings that stacking classifiers can improve the detection of cyberattacks in smart city networks have ramifications beyond technological contributions, including economic and societal ones.
More information will be gained in this regard from studies to be conducted in the future.To better identify cyber-attacks, new machine learning algorithms may be created.Because they will be customized to the unique traits of cyber assaults, these algorithms may be more accurate and trustworthy than their predecessors.Cyber attack detection systems may be more effective using additional data sources like network traffic data and system logs.This information can be utilized to spot trends in cyber assaults that aren't picked up by currently available databases.It is possible to build automated reaction systems responding to cyber threats.The authors may use these technologies to quarantine compromised machines, stave off harmful traffic, and roll back to a prior configuration.

Step 4 .
Feature selection: The fourth step is to choose the characteristics for training and evaluate the framework.The correctness of the framework depends heavily on the factors selected.Therefore, this is an essential stage.Step 5. Model training: The fifth step is to train the framework using the features chosen in the previous step.Several machine learning techniques may do this, including multi-class SVM and CHAID decision tree.Step 6. Model evaluation: The sixth step is to analyze the test set and determine how well the framework works.This is useful in evaluating the framework's ability to handle data it has never seen before.Step 7. Deployment: Putting the framework into production is the seventh step.The framework might be accessible as a web service or used with existing security solutions.

Fig. 2
Fig. 2 Conditional Box Plot of attacks

Fig. 3
Fig. 3 Heat map of attacks yi + a kThe first data preprocessing step involves normalization, accompanied by chi-square-based extracted features.The proposed model includes two phases: Initially, low-rank matrix features have been eliminated, and the best possible subset of all characteristics using chi square-based feature extraction.Finding the highest-priority features essential for the classifier largely depends mostly on ranking features.The statistics are separated into training, validation, and testing set during the second phase.The optimized kernel attribute is obtained using the tenfold cross-validation.

Algorithm 3 :
The proposed Model

Fig. 4
Fig.4The working of the proposed model

Fig. 8
Fig. 8 Comparison accuracy for existing Vs.Proposed Method Significant progress has been made in IoT security with a revolutionary multi-class SVM and an improved CHAID decision tree-based model for cyber attack prediction for IoT devices.In this section, the authors explore the research's main conclusions and ramifications while elaborating on the model's advantages and disadvantages.Compared to more conventional prediction methods, our innovative model, which combines multi-class SVM with an improved CHAID decision tree, shows substantial improvement.Combining the best features of both algorithms, this model may successfully defend Internet of Things (IoT) systems from more sophisticated and varied cyberattacks.The model can handle numerous attack classes according to the multi-class SVM algorithm, and it is optimized for speed and accuracy in classification thanks to the CHAID decision tree.Feature selection methods are incorporated into the model to determine which features are most important and informative for cyber attack prediction.The model can enhance its prediction abilities by lowering the number of characteristics included in the analysis and avoiding the negative effects of the curse of dimensionality.To improve the precision of predictions, the CHAID

Table 1
Comparison of various existing methods in the field of IoT cyber threats

Table 2
Top decision rules for 'label'

Table 4
Results gained by the CHAID model

Table 5
Results gained by the SVM model

Table 6
Simulation results for the proposed CHAID model Fig. 7 Confusion Matrix for the proposed model

Table 7
Accuracy results for the proposed and existing model

Table 8
Time complexity of existing model