1. Introduction
With the rapid development of China’s Internet of Things (IoT) and intelligent sensing technologies, sensor networks have been widely deployed across critical domains such as industrial control, environmental monitoring, healthcare, and smart cities [
1,
2,
3]. However, as the scale of sensor-device connectivity expands, the security threats to these systems have continued to intensify. According to the 49th issue of the Cybersecurity Information and Dynamics Weekly Report published by the National Internet Emergency Center (CNCERT) in 2024 [
4], the number of backdoor-infected devices and systems in China increased by 47.8% year-on-year, while the propagation frequency of malicious programs in edge devices and embedded systems rose by 29.2%. The security landscape of sensor networks has become increasingly critical. Against this backdrop, sensor data anomaly detection, as a key technology for ensuring system security and stable operation, holds substantial research value and practical significance [
5].
Sensor network data traffic consists of a collection of real-time data signals, acquired by numerous sensor nodes and transmitted through communication links. This data encompasses a diverse array of protocols and formats, reflecting communication patterns between nodes, variations in environmental conditions, and operational behaviors of devices [
6]. In-depth analysis of sensor data not only enables the identification of potential faults or security vulnerabilities but also provides technical support for system optimization and anomaly detection mechanisms (where ‘anomaly’ is translated as ‘early warning’; see note below). Anomaly detection is a technique used to identify behaviors that significantly deviate from normal patterns. Its fundamental principle involves developing statistical or machine learning models using normal data, followed by the identification of behaviors that deviate from these models. In sensor networks, anomalies may arise from various factors such as equipment malfunctions, communication interference, or malicious attacks.
Early methods for network traffic anomaly detection primarily relied on manually engineered features and statistical analysis. Common statistical approaches assume that data follows a specific distribution and detect anomalies by quantifying deviations from this distribution. For instance, the Local Outlier Factor (LOF) algorithm detects anomalies by evaluating changes in data point density, while clustering-based algorithms classify data according to distance metrics. These methods perform well when dealing with low-dimensional data but often face substantial limitations when applied to high-dimensional and heterogeneous network traffic data. Additionally, since statistical methods fail to capture temporal information in traffic patterns, they are inadequate in dynamic network environments that demand stringent real-time responsiveness [
7].
However, sensor data exhibits characteristics such as high dimensionality, unstructured nature, multi-source heterogeneity, and rapid, dynamic fluctuations. Traditional anomaly detection methods often struggle to manage complex data patterns under these conditions [
8]. Early research predominantly relied on manually engineered features, in combination with statistical methods, including the Local Outlier Factor (LOF) and clustering analysis. While these approaches demonstrated satisfactory performance in low-dimensional settings, they struggled to effectively capture the nonlinear characteristics and temporal dependencies intrinsic to complex sensor data [
9]. With the enhancement of computing power in sensing terminals and the accumulation of large-scale sensor data, machine learning methods have been extensively applied in the field of anomaly detection. Models such as Support Vector Machine (SVM), K-Nearest Neighbors (KNN), and Decision Trees have achieved moderate detection performance on small-scale datasets [
10,
11]. However, these approaches heavily rely on manual feature extraction, display limited generalization capabilities, and fail to adapt to dynamic and variable sensing environments [
12]. Furthermore, when dealing with large-scale heterogeneous sensor data, these algorithms encounter significant bottlenecks in terms of training efficiency and computational resource requirements.
In addition to these models, RBF neural networks have also been explored for security applications due to their strong nonlinear mapping capabilities. Early research demonstrated the effectiveness of hybrid approaches; for instance, Tong et al. [
13] used a hybrid RBF/Elman neural network for an intrusion detection system secure model. Further expanding on this, Zhang et al. [
14] proposed a network security situation prediction model based on BP and RBF neural networks. More recently, researchers have continued to leverage RBF’s strengths in modern security frameworks; Lopez-Martin et al. [
15] developed an intrusion detection system using an extended RBF network with offline reinforcement learning, enhancing its adaptability. These works highlight the ongoing relevance of RBF networks and provide a basis for our proposed fusion model. Previous studies have attempted to combine RBF with deep learning models for anomaly detection. However, these approaches typically appended an RBF layer at the end of the architecture, without exploring its synergy with Transformer-based temporal modeling. In contrast, RESTADM strategically places the RBF layer after the second encoder, which allows it to enhance local feature discrimination while preserving the Transformer’s ability to capture long-term dependencies.
In recent years, deep learning methods have gradually emerged as a prominent research focus in sensor anomaly detection, owing to their robust ability for automatic feature extraction. Convolutional Neural Networks (CNNs) excel at capturing spatial feature patterns, making them suitable for anomaly identification in static structured data; Recurrent Neural Networks (RNNs) and their Long Short-Term Memory (LSTM) architectures, on the other hand, excel at processing sequential data and modeling dynamic changes in sensor data [
16]. The integration of these methods provides a theoretical foundation for precise detection in complex, variable sensor environments [
17].
On this basis, the Transformer model, with its structural design based on self-attention mechanisms, has achieved groundbreaking results in natural language processing and time series modeling. Compared to traditional Recurrent Neural Networks, the Transformer offers parallel computing capabilities and effectively captures long-range dependencies, thereby demonstrating superior performance when processing continuous sensor data streams [
18]. Its multi-head attention mechanism can simultaneously model local and global features, thus providing new avenues for anomaly detection in complex data environments.
Recently, Yuan et al. [
19] proposed a hybrid and spatiotemporal detection framework (SCIS) for cyberattack network traffic in cloud data centers. Their model integrates CNNs, Informer, and Softmax classifiers to effectively capture spatiotemporal dependencies in network traffic flows, achieving significant improvements in detecting cyberattacks such as Denial-of-Service (DoS) and Distributed Denial-of-Service (DDoS). By leveraging CNNs to extract spatial features across network topologies and Informer to model temporal patterns in traffic sequences, their work provides valuable insights into hybrid modeling strategies for network-layer intrusion detection.
While both frameworks apply hybrid deep learning to anomaly detection, their primary application domains and data modalities differ significantly. Yuan et al. [
19] specializes in identifying cyberattacks by analyzing anomalous spatiotemporal patterns in high-volume, homogeneous network traffic. In contrast, the proposed RESTADM model is designed for the distinct challenges of sensor networks, where data is inherently multi-modal and heterogeneous. In such environments, anomalies extend beyond network-layer cyberattacks to include physical disturbances, device malfunctions, and environmental variations. RESTADM combines Transformer-based temporal modeling with an RBF neural network to enhance sensitivity to localized nonlinear patterns in multi-source, multivariate sensor data. Unlike network traffic analysis that focuses on packet-level or session-level features, our approach processes continuous physical measurements from heterogeneous sensors, requiring specialized handling of cross-domain data heterogeneity and fine-grained abnormal behavior patterns. Therefore, although both studies employ hybrid deep learning architectures, Yuan et al.’s [
19] work concentrates on cyberattack classification in network traffic, whereas RESTADM extends the hybrid modeling concept to multi-source sensor anomaly detection, emphasizing the identification of physical and operational anomalies that are characteristic of IoT and sensor network systems.
Although deep learning methods have significantly enhanced anomaly detection performance, sensor networks still encounter numerous challenges in practical applications. Firstly, sensor data typically exhibits high noise levels, high dimensionality, and temporal correlations, which hinder models from accurately identifying anomalous behaviors [
20]. Secondly, anomalous data represents an extremely small proportion of data in real-world systems, resulting in severe data imbalance that leads detection models to ‘overlook’ anomalies. Additionally, acquiring high-quality labeled data is challenging, particularly due to the scarcity of anomaly event samples in sensor systems, which further restricts the generalization ability of deep learning models [
21].
To address the aforementioned challenges, this paper proposes RESTADM for sensor networks. The model integrates a radial basis function neural network structure within the Transformer framework, employing nonlinear mapping to project complex sensor features into a high-dimensional space, thereby enhancing the model’s sensitivity to subtle anomaly patterns. Concurrently, by combining multi-head attention mechanisms it models feature correlations through similarity scoring and reconstruction error, effectively enhancing the accuracy and robustness of the anomaly detection. Experimental results demonstrate that the RESTADM model achieves superior performance across multiple real-world sensor datasets, significantly reducing false alarm rates and improving detection efficiency, thereby offering an innovative solution for establishing secure and reliable sensor network systems.
2. Sensor-Based Data Acquisition and Information Collection
This section details the comprehensive methodology for data acquisition and preparation, which forms the empirical foundation for training and evaluating the proposed RESTADM model. We begin by outlining the overall design of the data acquisition system in
Section 2.1. Following this,
Section 2.2 describes the specific sensor components employed and the multi-stage information acquisition process. To provide a concrete illustration of the output,
Section 2.3 presents a sample of the multi-point data collected. Finally,
Section 2.4 explains the crucial steps of data preprocessing and label generation used to construct the final, model-ready dataset.
2.1. Design of Data Acquisition System
To construct a high-precision network anomaly detection model, this paper designed and implemented a multi-dimensional sensor information collection system, establishing a comprehensive closed-loop process that encompasses sensor hardware deployment, raw information acquisition, data construction, and annotation. The collected data covers multiple dimensions, such as node operating status, physical environment characteristics, and communication behavior, thereby ensuring that model training is based on a robust data foundation and possesses practical applicability.
This collection system was deployed across multiple intelligent nodes in a heterogeneous environment, characterized by high universality and stability. Each node integrated various hardware sensor modules and leverages edge computing alongside remote communication mechanisms to enable dynamic sensing and real-time uploading of node operating status and environmental characteristics.
The system was deployed for a total of 30 days with a sampling period of 5 min, covering multiple typical working conditions, including normal operation status, communication-intensive periods, node temperature rise stages, as well as abnormal events. Each record was accompanied by a timestamp and node number, thus ensuring data traceability and structural integrity.
2.2. Sensor Composition and Information Acquisition Process
In the data collection platform of this study, in order to comprehensively reflect the operating status of the sensor nodes and variations in the external environment, the system integrates diverse sensor modules, encompassing dimensions such as environmental monitoring, behavioral perception, and network monitoring. These sensors possess high stability, compact size, rapid response, and are easily integrated with embedded platforms, facilitating large-scale deployment.
In the experiment, the DHT22 (AOSONG, Guangzhou, China) temperature and humidity sensor, as shown in
Figure 1a, was used to monitor changes in temperature and humidity within the node’s environment, thereby aiding in the identification of abnormal sensor states resulting from physical environmental anomalies. The BH1750 light sensor (Rohm Semiconductor, Kyoto, Japan), as shown in
Figure 1b, was employed to detect environmental light intensity, which can indirectly indicate whether the node is experiencing occlusion, malfunction, or abnormal operation. The SW-420 vibration sensor (manufactured by various suppliers, commonly sourced from Shenzhen, China), as shown in
Figure 1c, was utilized to detect device vibrations, thereby effectively identifying potential human intervention, accidental collisions, or positional changes. Wireless communication traffic was captured using an ESP32 module (Espressif Systems, Shanghai, China) equipped with Wi-Fi Sniffer functionality, as shown in
Figure 1d. This module enables real-time monitoring of inter-node communication traffic, captures underlying data packets, and provides essential data for analyzing abnormal network-layer behaviors.
All aforementioned sensors were connected to the edge computing node via UART or I2C communication protocols, with collected data uploaded to the cloud server through MQTT for centralized storage and unified processing. In total, five sensor nodes were deployed in the experimental setup, each integrating temperature, humidity, illumination, and vibration sensors, along with network traffic monitoring modules.
The information acquisition process was divided into four stages. First, the acquisition of raw signals, during which node status was periodically collected through the sensors. Second, edge processing was performed, utilizing local devices for outlier removal and data normalization. Third, protocol uploading was executed, with data streams transmitted via lightweight protocols (e.g., MQTT). Finally, cloud aggregation occurred, with the server uniformly formatting, labeling, and structuring the data.
2.3. Multi-Point Data Collection Sample Display
To provide an intuitive representation of the data features acquired by this system,
Table 1 presents sensor data samples from three representative nodes over a selected collection period. The data exhibits both time-series and multi-dimensional characteristics. Anomaly labels are manually annotated by integrating system logs with expert-defined rules, where a label of 0 denotes a normal state and 1 denotes the detection of abnormal behavior or state drift.
As illustrated in
Table 1, abnormal events are frequently associated with abrupt changes in several physical indicators, including rapid increases in temperature, abnormal vibration states, and sudden surges in data packet transmission. These changes serve as critical foundations for feature extraction and classification in subsequent anomaly detection models. These anomalies manifest differently across variables. For example, a sudden temperature rise may indicate node overheating, while abnormal humidity levels may lead to corrosion or short-circuiting. Abrupt drops in illumination can reflect occlusion or sensor malfunction, and abnormal vibration states often reveal external disturbances such as collisions or human interference. In terms of network behavior, unexpected surges in packet bytes or irregular protocol distributions may correspond to denial-of-service attacks or unauthorized access attempts. Such diverse manifestations make it difficult for traditional statistical or machine learning methods to capture both local and global dependencies effectively. In contrast, the proposed RESTADM model leverages both the Transformer, to capture temporal dependencies, and the RBF layer, to enhance sensitivity to subtle deviations, making it more efficient and reliable in detecting anomalies across heterogeneous variables.
2.4. Data Preprocessing and Label Generation
To improve the training efficiency and detection accuracy of the model, the originally collected data must be systematically pre-processed prior to modeling. Pre-processing steps include the removal or interpolation of missing values and outliers, normalization of physical environment variables, segmentation of network traffic data using a sliding time window approach, and manual annotation of abnormal events by integrating expert knowledge with the existing attack feature library to establish binary classification labels (normal/abnormal). The resulting dataset comprises approximately 200,000 structured records, encompassing diverse abnormal types such as DoS attacks, port scanning, and sensor failures, thereby providing reliable data support for subsequent model training and performance evaluation. Specifically, this labeled dataset, containing both normal and abnormal (e.g., DoS attacks, port scanning) instances, serves as the ground truth for training the RESTADM model to learn discriminative features and for evaluating its detection performance in the experiments described in
Section 4.
3. RESTADM Model Structure
Following the data acquisition and preprocessing steps described in
Section 2, this section introduces the proposed RESTADM model. The model is designed to learn from the multi-dimensional sensor data to effectively distinguish between normal and abnormal traffic patterns as defined by the generated labels. The model’s design uniquely integrates a RBF neural network within the Transformer framework to enhance anomaly detection sensitivity. We will begin by detailing the role and formulation of the RBF layer in
Section 3.1, explaining how it measures the similarity of latent representations to learned patterns. Subsequently,
Section 3.2 will elaborate on the Multi-Head Self-Attention mechanism, which is the core component of the Transformer architecture responsible for capturing temporal dependencies and feature correlations within the sensor data. The overall structure, which illustrates how these components are integrated, is depicted in
Figure 2.
3.1. Radial Basis Function Neural Network
This paper integrates the anomaly detection mechanism into the foundational Transformer architecture through specialized RBF (Radial Basis Function) neurons, as illustrated in
Figure 2. The specific placement of the RBF layer after the second encoder layer is a deliberate design choice, motivated by ablation studies (detailed in
Section 4.3.3) which indicate that this position yields slightly superior performance compared to other placements. The RBF layer operates on the latent representations from the preceding layer, denoted
, where each
. It computes similarities between every representation
and a set of M learnable centers
, with
. This yields the RBF outputs
, where
. These outputs are then passed to the subsequent layers. The similarity between each data point and each center is defined as:
In this context, the parameter , the parameter that controls the width of the RBF kernel, fundamentally shapes how the RBF layer evaluates data points relative to their respective centers. Intuitively, determines the sensitivity of each RBF neuron: a larger value leads to a more localized and specialized kernel (a smaller “width”), which is only responsive to inputs that are very close to its center. Conversely, a smaller results in a broader, more generalized kernel (a larger “width”) that is influenced by a wider range of inputs. The exponential transformation involving also ensures that the scale parameter remains positive, which simplifies the optimization process.
To further enhance the anomaly detection capability, we introduced an RBF layer after the second encoder layer of the Transformer. The rationale was that while the self-attention mechanism excels at capturing global temporal dependencies, it may overlook localized nonlinear variations that are critical for distinguishing subtle anomalies. The RBF layer provides localized feature mapping with strong nonlinear approximation capability, thereby complementing the global context modeling of the Transformer. This design choice enabled RESTADM to achieve a balance between global dependency modeling and local anomaly sensitivity. The proposed RESTADM model was trained by minimizing the mean squared error (MSE) to achieve precise reconstruction. For anomaly detection, a comprehensive anomaly score, referred to as the RESTADM score, was introduced. This score is obtained by combining the normalized RBF similarity score with the reconstruction error. The normalization operation is based on the Min-Max normalization method [
22], to ensure comparability, the RBF similarity score is used to measure
which represents the match with the learned center points. The higher the similarity, the more normal the behavior is deemed to be, whereas a lower similarity (or a greater distance from the RBF center) indicates an anomaly. This score is derived by aggregating the RBF outputs across all center points.
by averaging the values obtained. The reconstruction error is calculated as the discrepancy between the actual data
and its reconstructed value
the squared difference between them. The RESTADM score is calculated using the following formula:
Among them is represented as reconstruction error It is used to gauge discrepancies. This combined method highlights subtle anomalies with both low reconstruction error and low RBF scores, alongside significant anomalies featuring either high reconstruction error or low RBF scores.
Proper initialization of the RBF parameters, including center parameters and scale parameters, is essential to the methodology proposed in this study. To address this, two initialization strategies—random initialization and K-means initialization—are explored to assess their impact on model performance. For random initialization, the parameters are drawn from a normal distribution with a mean of zero and a standard deviation of one. Despite its simplicity, this approach may lead to slower convergence, an increased risk of convergence to local minima, and an initial inability to effectively represent the data distribution, which may result in model instability. In contrast, K-means initialization leverages the inherent structure of the data to obtain a more representative initialization. In this approach, a base model (excluding the ensemble radial basis function layer) is initially trained to minimize the mean squared error of reconstruction:
where
denotes the mean squared reconstruction error;
represents the ground-truth value of the
-th sample;
denotes the reconstructed output corresponding to
; and
is the total number of samples. The operator
refers to the Euclidean norm, which measures the squared distance between the original and reconstructed feature vectors.
After the base model achieves satisfactory reconstruction accuracy, latent representations are extracted from specific layers where the RBF layer is intended to be integrated subsequently. These latent representations are then utilized to initialize the center points via the K-means clustering algorithm, while the scale parameters are initialized,
is translated as
to perform initialization;
is the mean squared distance from each data point to its nearest cluster center. The formula is as follows:
Among them, denotes the latent representation vector of the i-th (sample/entity) at the t-th time step, while is obtained via the K-means algorithm as the -th cluster center. The value of is used to compute , and is initialized based on the average dispersion of data points around their respective centers to ensure that each RBF determines its scope of influence appropriately.
3.2. Multi-Head Self-Attention Module
The inputs to this module are derived from the preprocessed sensor traffic data described in
Section 2.3 and
Section 2.4, including environmental parameters (temperature, humidity, illumination), vibration states, and network traffic features (e.g., packet bytes, protocol type) with their corresponding anomaly labels. As illustrated in
Figure 3 below, the application of the self-attention mechanism in anomaly traffic detection is presented. Given that a feature is a scalar value, while the computation of the self-attention mechanism is based on matrix operations, it is necessary to transform each feature into a vector form. As shown in
Figure 3, assuming a traffic flow contains
individual features, each feature is transformed into a feature vector (F) using one-hot encoding, resulting in the feature representations
. Specifically, categorical attributes such as protocol type and anomaly labels are transformed using one-hot encoding, whereas continuous attributes such as temperature, humidity, and illumination are normalized to ensure comparability across different scales. This unified representation guarantees that both discrete and continuous features are mapped consistently into the feature space before applying the self-attention mechanism. After converting each feature into a one-hot encoded feature vector, the self-attention mechanism is employed to compute the similarity between these F, thereby learning the interrelationships among the features. This is achieved through the parallel computation of attention values (
A) that quantify the relevance among feature vectors. The resulting attention matrix represents the learned dependencies between the different features.
, the final output is an A.
, by leveraging this matrix, the model can learn the relationships between features, thereby achieving the objective of detection.
To improve the learning of interrelationships among the features, this study employed the multi-head attention mechanism, which extends the self-attention mechanism. The self-attention mechanism was originally termed the scaled dot-product attention mechanism by the Google research team [
23].
Figure 4 illustrates the differences between the scaled dot-product attention mechanism and the multi-head attention mechanism.
The calculation method of multi-head attention builds upon the single-head approach by applying separate linear transformations to the query (Q), key (K), and value (V) matrices. Taking Q as an example, assuming the number of heads is
, splitting
Q into
part
, sf
Q has dimensions
, then the dimensions of
transform
(Here, the value of
h must divide
M evenly for
Q, and similarly for
K and
V.)
Q,
K, and
V are transformed into multi-head representations via linear projections, with the computation formulated as follows:
Among them , and The parameter matrices represent the linear transformations used in the multi-head attention mechanism. The primary improvement of this mechanism lies in applying multiple distinct linear transformations to the query vectors (Q), key vectors (K), and value vectors (V). This allows the model to compute attention in parallel across different subspaces, thereby enhancing its ability to capture complex relationships and features. Within each head, Q, K, and V are mapped into a new linear space, and the attention mechanism then calculates the correlations between the vectors within this new space. Each head can focus on different types of information; for example, some heads may emphasize local features, while others may concentrate on global patterns.
An important characteristic of the multi-head attention mechanism is that, despite performing multiple linear transformations, the final result—after concatenation and a subsequent linear transformation—can be mapped back to the same dimensionality as the original input. This means that the output dimension of the multi-head attention mechanism is structurally consistent with that of the single-head attention mechanism, and therefore, it does not increase the model’s complexity or introduce additional dimensions. This concatenation process across multiple heads effectively integrates attention results from diverse perspectives, rather than merely adding redundant information. This feature enables the multi-head attention mechanism to enhance the model’s expressive capacity without substantially increasing computational complexity.
In the multi-head attention mechanism, each head independently computes the dot-product between Q, K, and V to calculate its respective attention weights. This process is essentially the same as the dot-product attention mechanism, where the dot product between Q and K is used to measure the correlation between each position in the input sequence, followed by a weighted summation of V to generate the final representation for each position. The key distinction lies in the fact that the multi-head mechanism does not rely solely on a single attention computation; instead, it calculates attention weights across multiple subspaces in parallel through different heads. This allows the model to capture diverse relationships between features across different subspaces, thereby enhancing its ability to model complex patterns and dependencies in the data.
As shown in
Figure 5, the computation method of the multi-head attention mechanism is introduced. Suppose there are
features in a traffic flow,
corresponding to each feature, respectively, the number of heads is
. Taking the
feature’s query
as an example. First,
are each transformed through a linear transformation into multiple heads.
is transformed into
;
are transformed similarly. Taking the first head of
as an example, the query
is multiplied with the value
and then scaled, the weight values are obtained through the
, subsequently, a weighted sum is computed with
to obtain the attention value
. The multi-head formula is as follows:
The improvement of the multi-head attention mechanism lies in applying multiple distinct linear transformations to the query , the attention values are calculated separately for each linear transformation, and the results are then concatenated. This approach effectively enhances the model’s fitting capacity. During model training, the parameter matrices for the linear transformations are continuously learned and adjusted. The operation of performing multiple linear transformations is analogous to using multiple convolution kernels in CNNs for multi-channel convolution operations, where different kernels are responsible for extracting distinct features. Similarly, the multi-head mechanism serves to analyze feature relationships from different perspectives, extract correlations, and further improve the model’s fitting capacity by increasing the number of model parameters.
5. Conclusions
This paper proposes a novel sensor network anomaly traffic detection model, RESTADM, which integrates Transformer and RBF techniques. The model leverages the Transformer architecture to effectively capture dependencies in sensor time-series data, while the RBF neural network enhances the perception of subtle anomaly patterns. Furthermore, a multi-head self-attention mechanism is introduced to model complex interactions among sensor features. Experimental results demonstrate that RESTADM achieves superior detection performance across multiple publicly available sensor datasets, particularly outperforming current state-of-the-art anomaly detection methods in terms of recall and F1-score, while also exhibiting strong accuracy and robustness.
While the RESTADM framework draws conceptual inspiration from hybrid architecture designs, it is essential to clarify that the model is not intended for direct application to network cyberattack detection. RESTADM is specifically designed and optimized for sensor network environments where anomalies primarily manifest as deviations in physical measurements and operational parameters, rather than malicious network traffic patterns. The model’s input features consist of multi-modal sensor readings (temperature, humidity, vibration, light intensity), not the network-level attributes (packet features, flow statistics, protocol signatures) typically required for cyberattack identification. This specialization serves a distinct application domain focused on the physical and operational integrity of sensor systems.
Despite these advantages, the RESTADM model presents certain limitations. Its relatively complex structure demands substantial computational resources during training, and the initialization and parameter selection of the RBF layer significantly influence detection outcomes. These factors increase the difficulty of deployment and the cost of optimization. Future research could therefore focus on designing lightweight architectures, improving training efficiency, and incorporating automated hyperparameter tuning techniques. Additionally, exploring RESTADM’s generalization ability and evaluating its practical performance across diverse sensor network scenarios could further enhance its applicability and reliability. Although RESTADM demonstrates competitive performance on benchmark datasets, several practical limitations should be acknowledged. First, the model relies on high-quality labeled data for training, and the annotation of physical anomalies and cyberattack events may be costly or infeasible in real-world environments. Second, while computational complexity has been addressed, the model’s applicability to resource-constrained edge devices remains to be further validated, particularly regarding inference latency and energy consumption. Third, the diversity of anomalies in practical sensor networks is often greater than that represented in the benchmark datasets, which may limit the generalization ability of the model. These limitations indicate that future research should investigate lightweight model structures, online or incremental learning strategies, and cross-domain adaptation mechanisms to improve real-world deployment feasibility.