<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>F. Alotaibi. Internet of Things security: A survey.
Journal of Network and Computer Applications</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.1007/s10586-024-04966-z</article-id>
      <title-group>
        <article-title>Method of detecting anomalies in IOT device traffic based on statistical analysis using the modified z</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Abdel-Badeeh M. Salem</string-name>
          <email>abmsalem@yahoo.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Ain Shams University</institution>
          ,
          <addr-line>El-Khalyfa El-Mamoun Street Abbasya, Cairo</addr-line>
          ,
          <country country="EG">Egypt</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Khmelnytskyi National University</institution>
          ,
          <addr-line>Khmelnytskyi, Instytutska street 11, 29016</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Mykola Stetsiuk</institution>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2024</year>
      </pub-date>
      <volume>2</volume>
      <fpage>1</fpage>
      <lpage>10</lpage>
      <abstract>
        <p>The article proposes a statistical method for detecting anomalies in the network traffic of Internet of Things (IoT) devices, which does not require the use of machine learning methods or pre-training on labeled data. The concept of the approach is based on building a profile of the normal behavior of each device using a modified Z-index that uses the median and median absolute deviation (MAD) to increase the robustness to noise, outliers and traffic irregularities. Anomaly events are defined as those that fall outside the limits of statistically justified acceptable intervals. The method is supplemented with a mechanism for filtering insignificant deviations using weighting factors that take into account the influence of individual parameters on the overall behavior of the device. Additionally, exponential smoothing and a cumulative deviation index are used to detect both shortterm and long-term anomalies. The proposed approach provides high adaptability to changes in the network activity of IoT devices, does not require large computing resources and can be used in realtime in monitoring systems. The practical implementation of the method involves the generation of device activity logs with controlled anomalies, which allows assessing the accuracy and sensitivity of the algorithm. Various types of deviations were simulated, including changes in the frequency of messages, the number of connection errors, the intervals between messages and authorization attempts. The method showed the highest efficiency in detecting temporal anomalies, demonstrating an average accuracy of over 84%. Since the method does not depend on prior information about the types of attacks, it is particularly suitable for protecting dynamic and heterogeneous IoT infrastructures.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;IoT security</kwd>
        <kwd>anomaly detection</kwd>
        <kwd>network traffic analysis</kwd>
        <kwd>machine learning</kwd>
        <kwd>Autoencoder</kwd>
        <kwd>intrusion detection</kwd>
        <kwd>cybersecurity threats</kwd>
        <kwd>1</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>The world is rapidly entering the Internet of Things (IoT) era, with the number of connected
devices expected to exceed 75 billion by 2025. At the same time, the massive expansion of IoT
poses serious challenges to cybersecurity, with over 77.9 million attacks recorded in 2023, up
37% from 2022. Botnets such as Mirai and Mozi exploit vulnerable IoT devices to carry out DDoS
attacks, data theft, and industrial espionage, threatening critical infrastructure. Traditional
security methods cannot handle dynamic IoT traffic, which requires new algorithms for
realtime threat detection.</p>
      <p>This paper proposes a combined approach that combines statistical methods (modified
Zscore, Rosner test, Holt-Winters method) with machine learning (Autoencoder) for effective
anomaly detection. Experiments conducted on the generated IoT traffic logs demonstrate that
this combination significantly reduces the level of false positives and ensures detection
accuracy. The proposed approach allows to adapt the security system to the specificities of the
IoT infrastructure and to operate stably even with limited resources.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Analysis of known solutions</title>
      <p>
        The paper [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] presents an entropy-based method for identifying IoT devices based on
calculating the entropy of network traffic parameters. The method uses the Random Forest
machine learning algorithm to classify devices based on traffic characteristics in various
network scenarios. The proposed approach demonstrated high efficiency, achieving 94% device
classification accuracy.
      </p>
      <p>
        The key element of the study was the smart home experimental setup, which allowed
collecting IoT device traffic and creating the IoTTGen tool for traffic modeling and emulation.
The authors compared synthetic and real traffic and analyzed their entropy properties to assess
the impact of anomalies. The experimental results confirmed significant differences in traffic
behavior depending on the device type and scenario, which emphasizes the importance of the
entropy approach for anomaly detection. [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]
      </p>
      <p>
        The authors [
        <xref ref-type="bibr" rid="ref3 ref4">3,4</xref>
        ] examined in detail the locality-aware anomaly detection (LSAD) method
for detecting anomalies in the network traffic of IoT devices. The method is based on the use of
the Nielsims hash function, which allows for efficient matching of network traffic patterns. The
main advantage of LSAD is that there is no need to pre-extract features from the data, which
significantly simplifies its adaptation compared to traditional machine learning methods. As
part of its work, LSAD generates signatures from the traffic of protected devices and determines
the threshold value T by calculating the average similarity of hashes. Further comparison of
hashes of new flows with the threshold value allows for quick detection of abnormal deviations.
A comprehensive evaluation of LSAD effectiveness was conducted based on a dataset of 15
different types of attacks on IoT devices, including ARP spoofing, Ping of Death, and TCP SYN
flooding. Experimental results show that the method provides an average true positive rate of
over 97% using only one minute of network traffic for analysis. Particular attention is paid to
comparing LSAD with popular single-class machine learning models, where the proposed
method outperformed analogs in the accuracy of detecting volumetric attacks. In addition,
LSAD demonstrated high performance with minimal computational costs, making it suitable
for implementation in real-world IoT systems with limited resources.
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], a locality-aware anomaly detection (LSAD) method was considered for detecting
anomalies in the network traffic of IoT devices. The method is based on the Nielsims hash
function for matching traffic patterns and detecting deviations. The advantage of LSAD is the
ease of adaptation, since it does not require preliminary feature extraction from the data, unlike
classical machine learning methods.
      </p>
      <p>
        The principle of LSAD is to create signatures of protected traffic and determine a threshold
value T based on the average hash similarity. Comparing new flows with this threshold value
allows for effective anomaly detection. The effectiveness of LSAD was experimentally evaluated
on a set of 15 attack types (ARP Spoofing, Ping of Death, TCP SYN Flooding). The method
demonstrated a true positive rate of over 97% when analyzing one-minute traffic. Compared to
single-class ML models, LSAD demonstrated higher accuracy and minimal computational costs,
which makes it suitable for implementation in resource-constrained IoT systems. In addition,
the k-means algorithm was used to study the behavioral clustering of devices in the LoRaWAN
network. The analysis of over 997 thousand packets from 2169 devices allowed us to identify
five main clusters of network activity. The authors studied the difference between stable and
anomalous device behavior patterns. [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] The clustering approach using internal verification
indices (WCSS, Davis-Bouldin) confirmed the robustness of the model. The results demonstrate
the potential of combining cluster analysis with anomaly methods to improve the cybersecurity
of IoT networks.
      </p>
      <p>
        The authors in [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] study an anomaly detection method in IoT cybersecurity using ensemble
machine learning and Bayesian hyperparameter sensitivity analysis. They propose a unified
approach that combines multiple models into an ensemble using Bayesian optimization to tune
the hyperparameters. The authors detail a hyperparameter optimization method using the Tree
Parzen Estimation (TPE) algorithm. They analyze the impact of key model parameters, such as
the number of trees in a random forest and the minimum leaf size in a decision tree, on the
anomaly detection accuracy. [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] Experimental results on the IoTID20 and IoT-23 datasets
demonstrated that ensemble models, especially XGBoost and Stacking, achieve the best
performance in terms of accuracy (F1 score above 96%), outperforming traditional models. The
authors highlight the advantages of ensemble learning in reducing false positives and stability
of results. Thus, the study demonstrates the effectiveness of ensemble machine learning for
anomaly detection in IoT networks and the importance of hyperparameter tuning to improve
model performance.
      </p>
      <p>
        In the papers [
        <xref ref-type="bibr" rid="ref10 ref9">9,10</xref>
        ], the authors propose a novel approach to detect global anomalies in
distributed IoT systems using direct communication between devices (device-to-device
communication). The method is based on the WAFL-Autoencoder (Wireless Ad Hoc Federated
Learning) model, which allows devices to jointly train autoencoders without transmitting local
data. A special feature of the study is the introduction of the concepts of local and global
anomalies. Local anomalies are rare for a device, but can be common to others. In contrast,
global anomalies are rare deviations in the entire device network. To effectively search for
global anomalies, the authors developed a coordinated thresholding algorithm in a distributed
environment. Experimental results on standard datasets (MNIST, Fashion-MNIST)
demonstrated high accuracy in detecting global anomalies with a low false positive rate. The
proposed WAFL-Autoencoder outperformed traditional centralized approaches, validating the
effectiveness of fully distributed training and its potential for secure and efficient monitoring
of IoT networks.
      </p>
      <p>In the papers [11,12], the authors explore the use of deep learning (DL) methods to detect
anomalies in IoT network traffic. They review state-of-the-art deep anomaly detection (DAD)
approaches and implement an ensemble model based on the KDD Cup 99 dataset. The authors
highlight the advantages of DL in discovering complex patterns in high-dimensional data,
especially for IoT environments.[13]</p>
      <p>The research methodology involves the use of various DL models such as GAN, CNN, LSTM,
and AutoEncoder. Normalization, feature scaling, and hyperparameter selection methods were
used for the experiments.[14] The main focus was on the interpretability of the models and
their performance.</p>
      <p>Experimental results showed that the CNN+LSTM ensemble model with Random Forest
classifier achieved the highest accuracy of 98.22%, outperforming the other implemented models
(AE and GAN). The ensemble also demonstrated the lowest false positive and false negative
rates. The authors highlight the potential of combining DL models and ensemble approaches
for efficient monitoring of IoT network traffic.[15]</p>
      <p>The paper [16] presents a systematic mapping of research on anomaly detection in industrial
equipment using IoT devices and machine learning (ML) algorithms.[16]</p>
      <p>The focus is on three types of equipment: milling tools, hydraulic systems, and bearings, as
they are the most prone to wear. The key sensors for anomaly detection were identified:
vibration, temperature, current, and pressure sensors.[17,18] The effectiveness of a combined
approach using multiple sensors to improve the detection accuracy is highlighted. The authors
also reviewed common ML algorithms: neural networks (MLP, LSTM, CNN), outlier detection
algorithms (OCSVM, Isolation Forest), and heuristic methods. It is noted that ensemble models
and autoencoders in combination with data preprocessing (FFT, PCA, normalization)
demonstrate the highest accuracy. Industry challenges are specifically addressed, including
limited resources of edge devices, lack of outlier data, and the need to regularly retrain models
to adapt to changes in manufacturing processes.[19]</p>
      <p>In [14], the use of CNN, LSTM, and their combined CNN-LSTM neural networks for
analyzing IoT device traffic and detecting attacks is investigated. The KDDCup99, NSL-KDD,
UNSW-NB15, WSN-DS, and CCIoT2023 datasets were used to train the models, allowing us to
test the effectiveness of the approach in various scenarios.[20,21]</p>
      <p>The main problem noted by the authors is the heterogeneity of IoT networks, which
complicates the global configuration of security systems. The proposed CNN-LSTM-based
solution provides high accuracy, but the effectiveness of the method is highly dependent on the
type of attack and device class, which may affect the detection results.[22]</p>
      <p>The main drawback is the high computational complexity, which limits the possibility of
implementing such systems in real IoT networks. This confirms the relevance of research in the
direction of lightweight statistical methods that can ensure the effectiveness of risk
identification without spending a lot of resources.[23]</p>
      <p>The study presents an interesting solution for modeling a DDoS attack scenario on
specialized information systems. The authors use a stochastic network model that allows them
to estimate the potential capabilities of attackers, the time it takes to implement an attack, and
its impact on critical resources [24]. The process of analyzing the parameters of the network
environment, which includes the characteristics of the probability of attack actions and their
impact on the target system, is very important [25]. A key feature of the application is the ability
to modify this model to detect unusual network traffic behavior and develop protective
measures. The combination of deterministic and stochastic methods allows not only to recreate
the cyber-attack scenario, but also to assess the effectiveness of protective measures. However,
given the dynamic nature of attacks on IoT devices, the proposed approach can be
complemented with machine learning techniques, which will improve the accuracy of anomaly
detection in data streams.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Detecting traffic anomalies</title>
      <p>Anomalies in IoT device traffic are deviations from expected behavior that can indicate security
risks or technical defects. It is important to identify such deviations quickly and accurately.</p>
      <p>However, the above-mentioned methods lose their utility in large data sets due to their
sensitivity to noise and outliers. To overcome these issues, an approach based on the z-index
correction method is proposed, which provides high robustness and accuracy due to the use of
median and median absolute deviation (MAD).</p>
      <p>To detect anomalies, it is first necessary to analyze the data coming from IoT devices. Such
information includes activity timestamps, connection parameters, error messages, network
resource usage, and other characteristics that indicate the device’s performance.</p>
      <p>Based on this information, a set of key characteristics is established, which makes it possible
to estimate the real behavior of the device. This is necessary to establish a training network
whose output reflects anomalous activity.</p>
      <p>To assess the normality of each device, the range of acceptable values is calculated using the
Corrected z-index method. The upper and lower limits separating normal values from abnormal
values are defined:
introduced:
analysis.</p>
      <p>= 
= 
+  ℎ   ℎ
∗</p>
      <p>−  ℎ   ℎ
∗ 
where threshold is a parameter that determines the level of permissible deviation, MAD is
the median absolute deviation, which is a stable measure of data dispersion.</p>
      <p>To determine the deviation of a particular device, the normalized deviation function is
 ( )
 −</p>
      <p>Any values outside these limits are considered anomalies and moved to the next level of
The anomaly detection process in IoT device traffic consists of a few basic steps, which allow
sequential analysis of all device parameters, identification of deviations from the norm, and
assessment of the critical level of the detected anomalies.</p>
      <p>In the first step: anomalies in the values of each parameter for different devices are detected.
The values obtained for this purpose are compared with the limits of normal behavior. If the
value exceeds the specified threshold, it is flagged as a possible anomaly.</p>
      <p>=
| 
0.675 ∗ ( −</p>
      <p>| &gt;  ℎ   ℎ
)
(1)
(2)
(3)
(4)
(5)
 =
| −    
|   
|
|
where boundary is the corresponding upper or lower limit of the normal range. Anomaly
Duration is the period of time during which the parameter was outside the normal range.</p>
      <p>Anomaly Duration is an indicator of how long the device was in an anomaly state:

=  
−</p>
      <p>In the third stage, we filter out insignificant anomalies. Accordingly, in order to reduce the
number of false positives, filtering of insignificant anomalies is used. Each parameter has its
own influence weight, which allows filtering out insignificant deviations that do not pose a
threat. Filtering is carried out using the weight coefficient:
the anomaly.
limit:
(6)
(7)
(8)
(9)
(10)
(11)
=
, |
on the most critical anomalies and avoid analyzing random parameter fluctuations.
where   is the significance factor for each parameter. This procedure allows you to focus
Not all detected anomalies are critical for the system. To avoid false positives, a filtering
mechanism for low-significant anomalies is used.</p>
      <p>To adaptively determine the anomaly level, a weight factor is introduced for each device:
where threshold is the set threshold coefficient that determines the permissible deviation
(usually 3).</p>
      <p>The aggregated average deviation for the entire data set can be expressed as:

1

 =1
 
where is the total number of records in the sample.</p>
      <p>In the second stage, after identifying potential anomalies, it is necessary to determine their
main characteristics. To do this, each detected anomaly receives such attributes as the device
identifier, the name of the parameter that has exceeded the normal limits, and the intensity of
The intensity of the anomaly is defined as the ratio of the deviation of the parameter to its
  ∑
 2
 =1  2</p>
      <p>anomaly indicator is also calculated:
 
 =1

 =1
where  
  
total time
spent in the anomaly state, and
Interval_(anomalu,i) is the total duration of observation.</p>
      <p>For the practical implementation of the method, a software prototype in Python was
developed. Each algorithmic component is presented as a separate module, which allows easy
integration of the method into any IoT device monitoring system.</p>
      <p>This approach provides high efficiency in detecting anomalies in real time, allowing for rapid
response to possible risks and threats in IoT networks.</p>
      <p>=</p>
      <p>, + (1 −  )  −1
С =
 − |</p>
      <p>, |

 =1

 =1
  
=
 |
To reduce the impact of random fluctuations in the data, exponential smoothing is used:
After determining the normal limits of device behavior, the process of anomaly detection is
carried out. The input data for this stage are the calculated normal values of the features and
their characteristics. The output data is a list of devices that demonstrate a significant deviation
from normal behavior. The abnormal deviation is calculated as:
Де   – smoothed value, а α – smoothing coefficient (0 &lt; α &lt; 1).).</p>
      <p>To detect long-term patterns of anomalous activity, a cumulative deviation indicator is</p>
      <p>This technique allows for more accurate detection of long-term anomalies and minimizes
the impact of single spikes, providing a more accurate analysis of network traffic of IoT
devices.To evaluate the proposed method for detecting anomalies in device traffic, an activity
log generation mechanism was developed. It is based on the use of distributions of input device
attributes, such as timestamps, login attempts, network addresses, connection errors, etc. The
generation took place with a random deviation of parameters within the normal range of values
for each device. This allows us to test the robustness of our approach in real scenarios of IoT
systems.</p>
      <p>Based on the input data, frequency distributions of the main parameters of the devices were
determined, and then artificial anomalies were created with a certain probability. To assess the
effectiveness of the z-index-adjusted method, anomalous values were added to the base logs,
after which the accuracy of their detection was analyzed.
he generated logs underwent a correlation assessment stage between parameters to determine
the degree of dependence between device attributes. Spearman's correlation coefficient was
used for this, as it effectively captures non-linear relationships between variables. Additionally,
independent anomalies were created in the form of random deviations in the data, allowing for
a more comprehensive evaluation of the method’s robustness against false positives and its
sensitivity to different types of deviations.</p>
      <p>Generating a device activity log consists of several key steps. First, devices are selected from
the total set according to the initial statistical distributions of their activity, ensuring that the
dataset reflects real-world variability in network behavior. Then, activity timestamps for each
device are defined and generated using a normally distributed time series, establishing a
structured baseline for expected device activity. Random deviations are introduced according
to the confidence interval parameter defined by the Modified Z-score, simulating fluctuations
that naturally occur in network traffic.</p>
      <p>A set of device attributes, such as login attempts, network connections, and error messages,
is identified as these parameters often serve as key indicators of anomalous behavior. A
correlation analysis is conducted to determine interdependencies between parameters, allowing
structured patterns to be generated for further anomaly detection and classification.
Additionally, control anomalies are introduced as values that fall outside the normal limits
established using the Modified Z-score. This controlled injection of anomalies enables the
assessment of the method’s effectiveness compared to traditional detection approaches,
ensuring its reliability in real-world cybersecurity scenarios. This approach ensures a
systematic and statistically sound method for evaluating anomaly detection algorithms,
highlighting the strengths and weaknesses of the applied techniques while maintaining a
realistic representation of device activity in IoT environments.</p>
      <p>.</p>
      <p>Figure 1. Scheme of processing and recording anomalies in the log.</p>
      <p>The process of generating IoT device activity logs is performed taking into account the
correlation characteristics of the data and modeling anomalous patterns. For this, the adjusted
Z-index method is used, which allows you to effectively identify significant deviations in the
behavior of devices. The generated log includes both normal data and controlled anomalies that
are used to test the accuracy of detecting non-standard behavior.</p>
      <p>In the process of generating an activity log, test anomalies are created for each device that
correspond to different behavior parameters. Among them, several main categories can be
distinguished.</p>
      <p>An unusual number of device messages is formed by changing the data exchange rate. It can
either increase, which may indicate a potential attack, or decrease, which may indicate technical
failures or interference in the network.</p>
      <p>An unusual number of authorization attempts determines possible security violations. An
increased number of unsuccessful logins may indicate a hacking attempt or problems with
authentication settings.</p>
      <p>An unusual series of messages arriving in quick succession is an important indicator of
anomalous behavior. If a device transmits many similar requests without interruption, this may
be the result of a software failure or system overload.</p>
      <p>Unusual time intervals between messages allow you to identify anomalies associated with
changes in the device's interaction with the network. For example, unexpected delays or,
conversely, too high a transmission rate can be signs of malfunctions.</p>
      <p>An unusual number of connection errors is an indicator of malfunctions in the device or its
interaction with the network. A high error rate can be associated with network instability,
hardware problems, or attempts at unauthorized intervention.</p>
      <p>The process of generating anomalies allows you to test the effectiveness of the method by
determining its ability to detect different types of deviations in device behavior.</p>
      <p>After generating the activity log, device profiles were formed, normal behavior limits were
determined, and deviation analysis was performed. The total number of unique devices in the
test log was 4804.</p>
      <p>The quantitative assessment of the detected anomalies was carried out by comparing the
found anomalies with the total number of injected deviations. The average level of anomaly
detection accuracy was 79 percent.</p>
      <p>The method best detected anomalies associated with changes in the time intervals between
device messages. Detecting such deviations is effective because the time patterns are well
modeled and have a clear structure that allows you to track changes.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Evaluation of the effectiveness of the method</title>
      <p>The effectiveness of the proposed approach is confirmed by numerical calculations, which
demonstrate higher accuracy and stability compared to classical statistical methods. The use of
a modified Z-estimator allows reducing the impact of single outliers, ensuring resistance to
sudden changes in traffic. Sensitivity of the method (Recall) = 89.96% indicates its ability to
effectively detect real anomalies, while the accuracy (Precision) = 86.72% confirms a low
proportion of false positives. Thanks to this, the method not only improves the quality of
detection, but also adapts to different scenarios of IoT devices, reducing dependence on rigidly
set threshold values.
(16)
   
=</p>
      <p>∗ 100%
 + 
242 (17)
    = ∗ 100% = 86.72</p>
      <p>242 + 37</p>
      <p>Where TP (True Positives) – true positive detections of anomalies, FP (False Positives) – false
positives. The experimental results showed that the average accuracy value for all features is
86.72%, which indicates a low proportion of false positives and high reliability of identified
anomalies. The sensitivity of our method is 89.96%, which means that the method effectively
finds most of the real anomalies, minimizing their omission.</p>
      <p>=
 + 
= 24224+227 ∗ 100%=89.96%</p>
      <p>For a comprehensive assessment of the effectiveness of the anomaly detection method, the
F1-score is used, which is the harmonic mean between accuracy (Precision) and sensitivity
(Recall). This metric allows us to assess the balance between correct anomaly detection and
minimizing false positives. A high F1-score indicates the stability of the algorithm and its ability
to provide reliable identification of anomalous events without an excessive number of false
positives.</p>
      <p>The mathematical justification and calculation of the F1-score for our method are presented
below.</p>
      <p>∗   (20)
 1 = 2 ∗</p>
      <p>+  
86.72 ∗ 89.96 (21)
 1 = 2 ∗ = 88.32%</p>
      <p>86.72 + 89.96</p>
      <p>To assess the effectiveness of the proposed method, an analysis of the main metrics
characterizing its ability to detect anomalies in the traffic of IoT devices was conducted. The
table shows quantitative indicators, which include the total number of anomalies in the
generated log (AGJ), the number of actually detected anomalies (DA), as well as the distribution
of true positive (TP), false negative (FN) and false positive (FP) cases. The key metric for
assessing the accuracy of the algorithm is Precision, which determines the proportion of
correctly detected anomalies among all detections. Additionally, the ratio of TP to (TP + FN)
allows us to assess the sensitivity (Recall), which determines the ability of the algorithm to
detect true anomalies without missing them. For complex analysis, the F1-score is used, which
is the harmonic mean between precision and sensitivity, which gives a balanced assessment of
the detection quality.</p>
      <p>As can be seen from Table 1, the method demonstrates the highest accuracy for anomaly
detection in the message interval (MI) category, confirming its effectiveness in detecting
deviations in temporal patterns. The lowest accuracy is observed in the analysis of repeated
messages (MR), indicating the potential need for additional model optimization for this type of
anomaly. The overall accuracy of the algorithm is 84%, indicating its stability and efficiency
compared to traditional statistical approaches.</p>
      <p>The graph shows a comparison of anomaly detection methods based on the Precision, Recall,
and F1-score metrics. Autoencoder shows the best results, indicating its ability to accurately
and completely identify anomalies.</p>
      <p>Modified Z-score and Rosner’s Test have similar performance, but are slightly inferior to
Autoencoder.</p>
      <p>Holt-Winters shows the worst metrics, indicating its less effective recognition of anomalous
patterns in the data.</p>
      <p>The graph illustrates the detection of anomalies in the outgoing traffic of the used IoT
devices.</p>
      <p>Normal traffic is indicated by a dotted line, and the red line shows anomalous traffic. Black
crosses indicate isolated anomalous events that differ significantly from the average level of
activity. Spikes and drops in intensity indicate possible attacks or atypical network behavior
that requires detailed analysis.</p>
      <p>The graph shows the distribution of IoT device traffic parameters. Yellow represents normal
values, orange represents potential anomalies, and pink represents stable data.</p>
      <p>It can be seen that parameter 2 (orange) has a wide spread, which may indicate the presence
of anomalous values, while parameter 3 (pink) is more stable and concentrated. Such analysis
allows you to better detect deviations in traffic and assess the likelihood of attacks.</p>
      <p>The boxplot illustrates an outlier analysis of IoT device traffic parameters. It can be seen that
parameter 2 has the largest spread and number of outliers, indicating potential anomalies.
Parameter 1 also contains several outliers, while parameter 3 is the most stable.</p>
      <p>Such an analysis allows us to assess the distribution of values and detect atypical behavior
of network traffic.</p>
      <p>The method performed worst in detecting anomalies associated with the number of repeated
messages. This may be due to the fact that small changes in the frequency of messages fell
within the range of normal values, which required a more precise adjustment of the boundaries
of normal behavior.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusions</title>
      <p>This paper proposes an approach to detecting anomalies in the traffic of Internet of Things
devices based on statistical methods. The method includes constructing numerical
characteristics of device profiles, determining their normal values, and searching for deviations
from the norm.</p>
      <p>The modified Z-estimator, Rosner test, and Holt-Winters method were used for analysis,
which allow detecting both single and multiple anomalies, as well as analyzing time series.
These methods allow for effective detection of deviations without the need for training on
labeled data, which is a key advantage in the IoT environment.</p>
      <p>Numerical evaluation of the approach's effectiveness showed that the average anomaly
detection accuracy for all features was 84%, with the best results (91%) obtained for the analysis
of message intervals. The method provides high computational speed and can be used in
environments with limited computing resources.</p>
      <p>The advantages of the proposed approach include its adaptability to different types of
devices, the ability to work with unlabeled data, and the minimal computing power
requirements.</p>
      <p>The main direction of further research is to expand the set of features and compare the
effectiveness of different statistical methods for anomaly detection in IoT networks.</p>
    </sec>
    <sec id="sec-6">
      <title>Declaration on Generative AI</title>
      <p>AI tools were used solely as translation and proofreading aids. All content was originally
authored by the submitting party.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>B.</given-names>
            <surname>Charyyev</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.H.</given-names>
            <surname>Gunes</surname>
          </string-name>
          .
          <article-title>Detecting Anomalous IoT Traffic Flow with Locality-Sensitive Hashes</article-title>
          . IEEE, Taiwan,
          <year>2020</year>
          . DOI:
          <volume>10</volume>
          .1109/GLOBECOM42002.
          <year>2020</year>
          .
          <volume>9322559</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>H.</given-names>
            <surname>Nguyen-An</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Silverston</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Yamazaki</surname>
          </string-name>
          , T. Miyoshi. IoT Traffic: Modeling and
          <string-name>
            <given-names>Measurement</given-names>
            <surname>Experiments</surname>
          </string-name>
          .
          <source>IoT</source>
          ,
          <volume>2</volume>
          (
          <year>2021</year>
          ),
          <fpage>140</fpage>
          -
          <lpage>162</lpage>
          . DOI:
          <volume>10</volume>
          .3390/iot2010008.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>A.</given-names>
            <surname>Nicheporuk</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Dariychuk</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Danchuk</surname>
          </string-name>
          .
          <article-title>Model of Process for Ensuring Fault Tolerance in Internet of Things Networks</article-title>
          .
          <source>Computer Systems and Information Technologies</source>
          ,
          <volume>2</volume>
          (
          <year>2024</year>
          ),
          <fpage>14</fpage>
          -
          <lpage>20</lpage>
          . DOI:
          <volume>10</volume>
          .31891/csit-2024
          <source>-2-2.</source>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>D.</given-names>
            <surname>Garlisi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Martino</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Zouwajhed</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Pourahmiri</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Cuomo</surname>
          </string-name>
          .
          <article-title>Exploratory approach for network behavior clustering in LoRaWAN</article-title>
          .
          <source>Journal of Ambient Intelligence and Humanized Computing</source>
          ,
          <year>2021</year>
          . DOI:
          <volume>10</volume>
          .1007/s12652-021-03121-z.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Farid</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Bello</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Sabrina</surname>
          </string-name>
          .
          <article-title>Ensemble learning based anomaly detection for IoT cybersecurity via Bayesian hyperparameters sensitivity analysis</article-title>
          .
          <source>Cybersecurity</source>
          ,
          <year>2024</year>
          . DOI:
          <volume>10</volume>
          .1186/s42400-024-0023-8.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>H.</given-names>
            <surname>Ochiai</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Nishidate</surname>
          </string-name>
          , E. Tomiyama,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Sun</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Esaki</surname>
          </string-name>
          .
          <article-title>Detection of Global Anomalies on Distributed IoT Edges with Device-to-Device Communication</article-title>
          . arXiv,
          <year>2024</year>
          . DOI:
          <volume>10</volume>
          .48550/arXiv.2407.11308.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>M.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <surname>L. Yao.</surname>
          </string-name>
          <article-title>IoT Network Traffic Analysis with Deep Learning</article-title>
          . arXiv,
          <year>2024</year>
          . DOI:
          <volume>10</volume>
          .48550/arXiv.2404.04964.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>S.G.</given-names>
            <surname>Chubchenko</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.S.</given-names>
            <surname>Koch</surname>
          </string-name>
          , M.C.
          <article-title>Moura-dos-</article-title>
          <string-name>
            <surname>Santos</surname>
            ,
            <given-names>R.L.</given-names>
          </string-name>
          <string-name>
            <surname>Mota</surname>
            ,
            <given-names>D.M.</given-names>
          </string-name>
          <string-name>
            <surname>Vieira</surname>
            ,
            <given-names>L.C.</given-names>
          </string-name>
          <string-name>
            <surname>Andrade</surname>
            ,
            <given-names>D.R.</given-names>
          </string-name>
          <string-name>
            <surname>Araújo</surname>
          </string-name>
          .
          <article-title>Anomaly Detection in Industrial Machinery using IoT Devices and Machine Learning: a Systematic Mapping</article-title>
          .
          <source>IEEE Access</source>
          ,
          <year>2023</year>
          . DOI:
          <volume>10</volume>
          .1109/ACCESS.
          <year>2023</year>
          .
          <volume>0320007</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Klots</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Petliak</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Martsenko</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Tymoshchuk</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Bondarenko.</surname>
          </string-name>
          <article-title>Machine Learning system for detecting malicious traffic generated by IoT devices</article-title>
          .
          <source>in: 2nd International Workshop on Computer Information Technologies in Industry 4</source>
          .0,
          <string-name>
            <surname>CITI</surname>
          </string-name>
          <year>2024</year>
          , volume
          <volume>3742</volume>
          ,
          <year>2024</year>
          , pp.
          <fpage>97</fpage>
          -
          <lpage>110</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>M.</given-names>
            <surname>Stetsyuk</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Cheshun</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Stetsyuk</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Kozelskiy</surname>
          </string-name>
          ,
          <string-name>
            <surname>A.-B.M. Salem</surname>
          </string-name>
          .
          <article-title>A model of a DDoS attack scenario on elements of specialized information technology and methods of combating cybercriminals</article-title>
          .
          <source>in: Proceedings of the 5th International Workshop on Intelligent Information Technologies and Systems of Information Security (IntelIITSIS</source>
          <year>2024</year>
          ),
          <source>CEUR Workshop Proceedings</source>
          , vol.
          <volume>3675</volume>
          ,
          <string-name>
            <surname>Khmelnytskyi</surname>
          </string-name>
          ,
          <source>Ukraine, 28 March</source>
          <year>2024</year>
          , pp.
          <fpage>260</fpage>
          -
          <lpage>269</lpage>
          . ISSN 1613-0073.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>