ConceptioArchivearXiv CS
arXiv CSopen access

Clustering-Enhanced Domain Adaptation for Cross-Domain Intrusion Detection in Industrial Control Systems

Unknown · 2026 · arxiv_cs
arXiv CS · Papers · License: Open Access · 2026
Open Source ↗Direct PDF ↓
cryptography, security, privacy, cybersecurity

Clustering-Enhanced Domain Adaptation for Cross-Domain Intrusion Detection in Industrial Control Systems

arXiv:2604.12183v1 [cs.LG] 14 Apr 2026

LUYAO WANG University of Malaya Malaysia Abstract: Industrial control systems operate in dynamic environments where traffic distributions vary across scenarios, labeled samples are limited, and unknown attacks frequently emerge, posing significant challenges to cross-domain intrusion detection. To address this issue, this paper proposes a clustering-enhanced domain adaptation method for industrial control traffic. The framework contains two key components. First, a feature-based transfer learning module projects source and target domains into a shared latent subspace through spectral-transform-based feature alignment and iteratively reduces distribution discrepancies, enabling accurate cross-domain detection. Second, a clustering enhancement strategy combines K-Medoids clustering with PCA-based dimensionality reduction to improve cross-domain correlation estimation and reduce performance degradation caused by manual parameter tuning. Experimental results show that the proposed method significantly improves unknown attack detection. Compared with five baseline models, it increases detection accuracy by up to 49%, achieves larger gains in F-score, and demonstrates stronger stability. Moreover, the clustering enhancement strategy further boosts detection accuracy by up to 26% on representative tasks. These results suggest that the proposed method effectively alleviates data scarcity and domain shift, providing a practical solution for robust cross-domain intrusion detection in dynamic industrial environments. Key-Words: - Industrial Control Systems; Intrusion Detection; Domain Adaptation; Transfer Learning; Cross-Domain Detection; Clustering Enhancement; Unknown Attack Detection. Received: May 31, 2019. Revised: May 4, 2020. Accepted: May 22, 2020. Published: May 29, 2020 (WSEAS will fill these dates in case of final acceptance, following strictly our data base and possible email communication)

1

Introduction

Although deep learning has achieved remarkable success in pattern recognition [32], representation learning [15, 27, 22, 29], medical image analysis and healthcare intelligence [2, 25, 26, 14, 33], as well as 3D understanding and retrieval tasks [19, 12, 30, 6, 3, 6, 13, 18, 17], it has also shown strong potential in security-related applications and generative modeling [31, 28, 23]. Nevertheless, its application to industrial control system intrusion detection remains limited in practice, mainly due to scarce labeled data, heterogeneous traffic distributions, and the dynamic nature of industrial environments [24, 7, 10].

Figure 1: Teaser of the proposed clustering-enhanced domain adaptation framework for industrial control intrusion detection.

Industrial Control Systems (ICSs) have become indispensable to modern critical infrastructure, supporting a wide range of industrial sectors such as petrochemical production, water treatment, natural gas transportation, and electric power systems [24, 7]. By integrating industrial process control with communication networks and intelligent management technologies, ICSs enable real-time monitoring, automated regulation, and efficient coordination of large-scale industrial operations. As industrial environments continue to evolve toward higher levels of automation, connectivity, and intelligence,

their dependence on ICSs has become deeper than ever. Although this transformation greatly improves productivity, flexibility, and management efficiency, it also introduces new cybersecurity risks that directly threaten the reliability and safety of industrial operations [24, 11]. Compared with conventional IT systems, industrial control networks exhibit several unique characteristics that make intrusion detection substantially more challenging [24, 7]. First, the distributed and intelligent evolution of industrial

systems has accelerated the adoption of remote access and interconnected communication mechanisms, thereby exposing vulnerabilities in industrial devices, protocols, and software to potential attackers. Second, ICSs operate under strict real-time communication requirements. In practical settings, traffic from distributed field devices may rapidly converge to central control nodes during specific operational periods, resulting in high-speed, bursty, and highly concurrent communication patterns. These properties can be statistically similar to malicious traffic, allowing attack behaviors to be concealed within normal operational communication and making accurate detection difficult [7, 11]. In addition, industrial communication networks typically involve heterogeneous devices, complex monitoring equipment, large-scale topologies, and rich yet highly structured traffic features. As a result, many detection strategies designed for conventional Internet or IoT environments cannot be directly transferred to industrial scenarios [24, 10]. To protect industrial systems from cyber threats, a variety of intrusion detection approaches have been studied, including host-based, protocol-based, and traffic-based methods [24, 7]. Among them, traffic-based intrusion detection has become one of the most mainstream paradigms and is the focus of this work. The reason is that industrial traffic contains abundant behavioral information, such as communication sessions, packet statistics, and temporal variation patterns. By extracting and analyzing these features, an intrusion detection model can learn discriminative patterns that distinguish normal communication from malicious behavior. In recent years, machine learning and deep learning techniques have significantly improved feature mining and attack classification, enabling more powerful intrusion detection systems for industrial environments [11, 27, 28]. However, most of these methods rely on two assumptions: the availability of sufficient high-quality labeled training data and the consistency of feature distributions between training and testing samples. In real industrial deployments, both assumptions are often violated [24, 10, 7]. A fundamental challenge is that industrial communication environments are inherently dynamic. Changes in monitored devices, deployment locations, manufacturers, control processes, communication patterns, and threat types can all cause significant shifts in data distribution [24, 10]. Consequently, a detector trained on one industrial system may perform well in its original environment but degrade substantially when applied to another system or even to a later stage of the same system after structural changes occur. This problem becomes particularly severe in unknown attack detection. For example, a

model trained on historical traffic from one scenario may fail to recognize new attack behaviors introduced by newly connected equipment or newly exposed vulnerabilities. Similarly, when a new industrial system is deployed, there is often insufficient labeled traffic to train a dedicated intrusion detection model from scratch, forcing practitioners to reuse models trained on other systems. Because industrial traffic distributions are not consistent across systems, such reused models often exhibit weak generalization ability in the new environment. These practical scenarios highlight the importance of cross-domain intrusion detection, namely, enabling a model trained on a labeled source domain to generalize effectively to an unlabeled or sparsely labeled target domain [34, 5, 10]. Unfortunately, collecting large-scale, high-quality, and continuously updated labeled industrial traffic data is extremely difficult. Industrial control traffic is scarce and valuable, and relevant data are often distributed across different network layers and operational stages. Moreover, traffic acquisition, cleaning, screening, annotation, model retraining, and redeployment all incur substantial time and economic costs. As a result, conventional supervised retraining is often impractical in real deployments [24, 7]. Therefore, reducing dependence on labeled target-domain traffic while building adaptable and accurate intrusion detection models for dynamic industrial environments has become an urgent research problem in industrial cybersecurity [10, 34]. Transfer learning and domain adaptation provide a promising solution to this challenge [5, 34, 10]. Instead of training a detector exclusively within a single fixed environment, transfer learning aims to reuse knowledge learned from a labeled source domain and transfer it to a related but different target domain. This paradigm is particularly attractive for ICS intrusion detection, where labeled attack samples in the target domain are scarce or unavailable, while certain structural similarities may still exist across industrial systems [10, 34]. Existing studies have shown that transfer learning can alleviate the shortage of labeled datasets and improve cross-domain detection performance [5, 34]. Nevertheless, directly applying transfer learning to industrial traffic remains nontrivial. Source and target domains may differ in feature dimensionality, statistical properties, and noise levels. Moreover, industrial traffic often contains outliers and complex attack patterns, which hinder reliable correspondence estimation between domains [7, 10]. Therefore, an effective adaptation framework for ICS intrusion detection must address not only feature distribution mismatch, but also stable and accurate source–target correlation modeling under heterogeneous and noisy

conditions. To address these challenges, this paper proposes a clustering-enhanced domain adaptation framework for industrial control traffic intrusion detection. The proposed method consists of two tightly coupled components. The first is a feature-based transfer learning module that maps the source and target domains into a shared latent subspace through spectral-transform-based feature alignment. By iteratively reducing the discrepancy between corresponding instances across domains, this module learns a representation that is more suitable for cross-domain intrusion detection. The second is a clustering enhancement strategy that improves the reliability of source–target matching before and during adaptation. Specifically, K-Medoids clustering is employed to partition source and target samples [9], while PCA is used to homogenize heterogeneous feature spaces so that meaningful distance-based correlation analysis can be performed [21]. Compared with direct feature transfer alone, the proposed clustering-enhanced mechanism improves the reliability of domain correlation estimation and reduces performance degradation caused by manual parameter tuning, thereby leading to more stable adaptation behavior. The effectiveness of the proposed framework is validated on industrial traffic datasets collected from natural gas pipeline systems and water storage control systems. Experimental results show that the proposed method substantially improves unknown attack detection performance in cross-domain scenarios. Compared with five common baseline models, it improves detection accuracy by up to 49%, achieves even larger gains in F-score, and exhibits stronger stability. In addition, the clustering enhancement strategy further improves detection accuracy by up to 26% on representative tasks. These findings demonstrate that incorporating clustering structure into feature-based domain adaptation is a practical and effective way to mitigate data scarcity and domain shift in industrial intrusion detection. The main contributions of this paper are summarized as follows: • We investigate the problem of cross-domain intrusion detection in industrial control systems and analyze the joint impact of data scarcity, dynamic environments, and domain shift on the performance of conventional intrusion detection models. • We propose a clustering-enhanced domain adaptation framework that integrates feature-based transfer learning with K-Medoids-based clustering enhancement

and PCA-based feature homogenization for industrial traffic data. • We demonstrate through experiments on industrial traffic datasets that the proposed method consistently improves detection accuracy, F-score, and stability, showing its effectiveness for unknown attack detection in dynamic industrial environments.

2

Research Methodology

This section presents the proposed clustering-enhanced domain adaptation framework for cross-domain intrusion detection in industrial control systems [10, 7]. The objective is to transfer discriminative knowledge from a labeled source domain to an unlabeled target domain under distribution mismatch, so that the detector can maintain reliable performance in dynamic industrial environments [5, 34, 10]. In this study, intrusion detection is formulated as a binary classification problem, where each traffic sample is categorized as either normal or malicious. The proposed framework consists of two tightly coupled components: a feature-based transfer learning module for latent-space alignment and a clustering enhancement module for structure-aware source–target correspondence estimation. As illustrated in Fig. 2, the overall pipeline starts from heterogeneous source-domain and target-domain traffic, then performs feature-space homogenization and clustering-guided correspondence estimation, and finally learns a transferable latent representation for target-domain intrusion detection.

2.1

Problem Formulation

Let the labeled source domain be defined as 𝑛𝑠 D𝑠 = {(𝑥𝑖𝑠 , 𝑦 𝑖𝑠 )}𝑖=1 ,

where 𝑥𝑖𝑠 ∈ R𝑑𝑠 denotes the 𝑖 -th source-domain sample and 𝑦 𝑖𝑠 ∈ {0, 1} is its label, with 0 representing normal traffic and 1 representing malicious traffic. Let the unlabeled target domain be defined as 𝑡 D𝑡 = {𝑥 𝑡𝑗 } 𝑛𝑗=1 ,

where 𝑥 𝑡𝑗 ∈ R𝑑𝑡 denotes the 𝑗 -th target-domain sample. In practical industrial scenarios, D𝑠 and D𝑡 are collected from different control environments, such as natural gas pipeline systems and water storage control systems. As a result, the two domains may differ in both feature dimensionality and statistical distribution [1, 7, 10, 4], i.e., 𝑑 𝑠 ≠ 𝑑𝑡 ,

𝑃𝑠 (𝑋, 𝑌 ) ≠ 𝑃𝑡 (𝑋, 𝑌 ).

Figure 2: Overview of the proposed clustering-enhanced domain adaptation framework for cross-domain intrusion detection in industrial control systems. The left part illustrates the challenge of domain shift and unknown attacks in dynamic industrial environments. The middle part presents the proposed method, which combines PCA-based feature homogenization, K-Medoids-guided structural correspondence estimation, and spectral-transform-based feature alignment. The right part summarizes the effectiveness of the proposed framework in improving unknown attack detection accuracy, F-score, and stability over baseline methods. The goal is to learn a mapping 𝑓 (·) and a classifier 𝑔(·) using labeled source-domain data and unlabeled target-domain data such that the target-domain labels can be predicted accurately: 𝑦ˆ 𝑡𝑗 = 𝑔( 𝑓 (𝑥 𝑡𝑗 )),

𝑗 = 1, . . . , 𝑛𝑡 .

To achieve this, the proposed framework aims to reduce cross-domain discrepancy while preserving the discriminative structure required for industrial intrusion detection. From the perspective of Fig. 2, this objective is achieved by combining global latent-space transfer with local structure-aware matching between the two domains.

2.2

Data Preprocessing and Feature Space Homogenization

Before domain adaptation, the source-domain and target-domain traffic data are preprocessed in a unified manner. The preprocessing pipeline includes erroneous-label correction, numerical encoding of categorical attributes, and feature standardization. For each domain, feature standardization is performed as 𝑥−𝜇 , 𝑥˜ = 𝜎 where 𝜇 and 𝜎 denote the feature-wise mean and standard deviation, respectively. This step ensures that variables with different physical scales can be represented consistently. A key challenge in industrial traffic adaptation is that the source and target domains may not share

the same feature dimensionality. Direct similarity computation and cluster analysis are therefore unreliable under heterogeneous feature spaces. To address this issue, principal component analysis (PCA) is used to project both domains into a common 𝑑 -dimensional isomorphic space [21, 8]: 𝑧 𝑖𝑠 = 𝑊𝑠⊤ 𝑥˜𝑖𝑠 ,

𝑧 𝑡𝑗 = 𝑊𝑡⊤ 𝑥˜ 𝑡𝑗 ,

where 𝑊𝑠 ∈ R𝑑𝑠 ×𝑑 and 𝑊𝑡 ∈ R𝑑𝑡 ×𝑑 are PCA projection matrices for the source and target domains, respectively, and 𝑑 ≪ min(𝑑 𝑠 , 𝑑𝑡 ) . After transformation, both domains are represented as 𝑛𝑠 , Z𝑠 = {(𝑧𝑖𝑠 , 𝑦 𝑖𝑠 )}𝑖=1

𝑡 Z𝑡 = {𝑧 𝑡𝑗 } 𝑛𝑗=1 ,

which provides a unified representation basis for clustering and feature transfer. This preprocessing and homogenization stage corresponds to the first key step shown in Fig. 2, where heterogeneous industrial traffic is converted into a comparable representation space for subsequent adaptation.

2.3

Feature-Based Transfer Learning

Feature-based transfer learning forms the core of the proposed framework [20, 5, 34, 10]. Its purpose is to learn a shared latent representation in which the discrepancy between source and target domains is reduced, while the class structure relevant to intrusion detection is preserved. Let ℎ𝑖𝑠 = 𝐴⊤ 𝑧 𝑖𝑠 , ℎ𝑡𝑗 = 𝐴⊤ 𝑧 𝑡𝑗 ,

where 𝐴 ∈ R𝑑×𝑚 is a latent projection matrix and 𝑚 is the dimensionality of the latent subspace. The transformed feature sets are denoted by 𝑛𝑠 H𝑠 = {(ℎ𝑖𝑠 , 𝑦 𝑖𝑠 )}𝑖=1 ,

𝑡 H𝑡 = {ℎ𝑡𝑗 } 𝑛𝑗=1 .

To make the learned representation transferable, the latent mapping is optimized by simultaneously preserving source-domain discriminability and reducing source–target discrepancy [1, 20, 5, 34]. A generic objective can be written as min L 𝑐𝑙𝑠 (H𝑠 , 𝑌𝑠 ) + 𝜆L 𝑑𝑎 (H𝑠 , H𝑡 ) + 𝛾∥ 𝐴∥ 2𝐹 , 𝐴

where L 𝑐𝑙𝑠 is the source-domain classification loss, L 𝑑𝑎 is the domain adaptation loss measuring the discrepancy between the two domains in the latent space, and 𝜆, 𝛾 > 0 are trade-off parameters. In this work, the alignment process is implemented in a spectral-transform-based manner. The latent projection iteratively reduces the distance between structurally corresponding source and target samples: ∑︁ ∥ℎ𝑖𝑠 − ℎ𝑡𝑗 ∥ 22 , L 𝑑𝑎 = (𝑖, 𝑗 ) ∈Ω

where Ω denotes the set of cross-domain correspondences estimated by the clustering enhancement module. By minimizing this term, the latent representation gradually captures the domain-invariant structure shared by different industrial systems. A classifier 𝑔(·) is then trained on the adapted source-domain representation and used to infer target-domain labels. As summarized in Fig. 2, this module serves as the feature transfer backbone of the proposed method, while its optimization is guided by the structural correspondence discovered by the clustering enhancement module.

2.4

Clustering Enhancement Strategy

Although latent-space transfer learning reduces domain discrepancy, direct alignment of all samples may still be unreliable when industrial traffic contains noise, outliers, and heterogeneous attack patterns [7, 10]. To improve source–target matching quality, a clustering enhancement strategy is introduced before latent-space alignment. The internal workflow of this module is illustrated in Fig. 3, where source-domain and target-domain samples are first organized into clusters and then matched through cluster-level similarity estimation. The complete computational procedure of the proposed method is summarized in Alg. 1. It shows how preprocessing, PCA projection, K-Medoids clustering, structural correspondence construction, latent-space learning, and final prediction are

Figure 3: Illustration of the clustering enhancement module. After PCA-based feature homogenization, source-domain and target-domain samples are partitioned into clusters by K-Medoids. Cluster-level similarity is then computed to establish source–target structural correspondence, which guides the subsequent latent-space alignment. Algorithm 1 Clustering-Enhanced Domain Adaptation for ICS Intrusion Detection Input: Source domain D𝑠 , target domain D𝑡 Output: Predicted target labels 𝑌ˆ𝑡 1. Preprocess source and target data 2. Apply PCA to obtain Z𝑠 and Z𝑡 3. Perform K-Medoids clustering on both domains 4. Compute cluster-level similarity and build correspondence set Ω 5. Learn latent projection 𝐴 by minimizing the adaptation objective 6. Train classifier 𝑔 on adapted source features 7. Predict target labels 𝑌ˆ𝑡 = 𝑔( 𝐴⊤ 𝑍𝑡 ) integrated into a unified cross-domain intrusion detection pipeline. After PCA transformation, the source and target samples are partitioned into 𝐾𝑠 and 𝐾𝑡 clusters, respectively: C𝑠 = {𝐶1𝑠 , 𝐶2𝑠 , . . . , 𝐶𝐾𝑠 𝑠 },

𝑡 C𝑡 = {𝐶1𝑡 , 𝐶2𝑡 , . . . , 𝐶𝐾 }. 𝑡

Each cluster is represented by its medoid [9]: 𝑚 𝑠𝑝 ∈ 𝐶 𝑠𝑝 ,

𝑚 𝑡𝑞 ∈ 𝐶𝑞𝑡 ,

where 𝑚 𝑠𝑝 and 𝑚 𝑡𝑞 are actual samples minimizing the total within-cluster distance. Cluster-level similarity between the 𝑝 -th source cluster and the 𝑞 -th target cluster is measured by ! ∥𝑚 𝑠𝑝 − 𝑚 𝑡𝑞 ∥ 22 𝑆 𝑝𝑞 = exp − , 𝜏 where 𝜏 > 0 is a scaling parameter. For each target-domain cluster 𝐶𝑞𝑡 , the most relevant

source-domain cluster is selected as 𝜋(𝑞) = arg max 𝑆 𝑝𝑞 . 𝑝

This yields a coarse structural correspondence between the two domains: 𝐶𝑞𝑡 ←→ 𝐶 𝑠𝜋 (𝑞) .

Based on this cluster-level matching, sample-level correspondence candidates are further constructed within matched cluster pairs, and the resulting correspondence set Ω is used to guide latent-space alignment. Compared with global sample-wise transfer, this strategy reduces unreliable matching caused by severe domain discrepancy and provides a more stable structural prior for adaptation. This mechanism is visually summarized in Fig. 3 and operationally reflected in Steps 3–5 of Alg. 1.

2.5

K-Medoids for Noise-Robust Cluster Alignment

The selection of clustering algorithm is particularly important for industrial traffic analysis because ICS datasets often contain noisy observations, rare attacks, and imbalanced traffic patterns [7, 10]. Under such conditions, cluster quality can be severely affected if the clustering method is sensitive to outliers. For this reason, K-Medoids is adopted instead of K-Means [9, 16]. Given a set of PCA-transformed 𝑛 , K-Medoids aims to minimize the samples {𝑧𝑖 }𝑖=1 total within-cluster dissimilarity: min

{𝐶𝑘 }, {𝑚𝑘 }

𝐾 ∑︁ ∑︁

∥𝑧 𝑖 − 𝑚 𝑘 ∥ 2 ,

𝑘=1 𝑧𝑖 ∈𝐶𝑘

where 𝑚 𝑘 ∈ 𝐶 𝑘 is the medoid of cluster 𝐶 𝑘 . Unlike K-Means, which uses the arithmetic mean as the cluster center, K-Medoids selects actual samples as representatives. This property makes it more robust to noise and outliers [9, 16], and therefore more suitable for industrial traffic data with irregular attack behavior. By applying K-Medoids in the PCA-homogenized feature space, the proposed framework obtains more reliable cluster partitions and more stable source–target structural correspondence, which in turn improves the effectiveness of subsequent domain adaptation. As reflected in Fig. 3 and Alg. 1, the clustering module plays a central role in bridging local structure discovery and global latent-space alignment.

3

Experiments

This section evaluates the proposed clustering-enhanced domain adaptation framework

on cross-domain intrusion detection tasks in industrial control systems. We first describe the experimental setup, including baseline models, task construction, and evaluation metrics. We then report the results on unknown attack detection and further analyze the contribution of the clustering enhancement strategy.

3.1

Experimental Setup

In this study, industrial control intrusion detection is formulated as a binary classification problem, where each traffic sample is categorized as either normal or malicious. To evaluate the effectiveness of the proposed framework, five widely used machine learning models are adopted as baseline methods, including Random Forest (RF), Support Vector Machine (SVM), Naive Bayes Model (NBM), K-Nearest Neighbors (KNN), and Artificial Neural Network (ANN). Among them, ANN is implemented as a three-layer fully connected neural network using PyTorch, while the remaining models are implemented with the scikit-learn library. The proposed clustering-enhanced domain adaptation framework is also implemented in PyTorch. To ensure a fair comparison, all methods are evaluated under the same source–target task settings and binary intrusion detection protocol. In preliminary experiments, a single decision tree consistently showed weaker performance than random forest under cross-domain industrial intrusion detection settings. Therefore, it is not included in the final comparison. This design allows the evaluation to focus on representative classical and neural baselines while avoiding redundant comparisons with clearly inferior variants. To evaluate the performance of the proposed method on unknown attack detection, four cross-domain tasks are constructed based on two industrial control systems: a natural gas control system (G) and a water storage tank control system (W). The tasks are defined as: • DoS(G)→NMRI(W), • SMRI(G)→MPCI(W), • DoS(W)→NMRI(G), • SMRI(W)→MPCI(G). For example, in DoS(G)→NMRI(W), the source domain consists of normal traffic and DoS attack traffic collected from the gas system, while the target domain consists of normal traffic and NMRI attack traffic collected from the water system. The remaining tasks are constructed in the same manner by exchanging the source and target systems as well as attack categories. These settings are designed to evaluate the ability of each method to generalize

across both industrial environments and unseen attack patterns. Such a protocol is particularly challenging because the source and target domains differ not only in attack category, but also in traffic semantics, payload characteristics, and control-process dynamics. Therefore, a detector that performs well under these settings must possess both feature transferability and robustness to unseen domain-specific variations. This makes the experimental design a meaningful testbed for evaluating cross-domain industrial intrusion detection capability rather than simple within-domain classification accuracy. In addition to the main comparison, an ablation-style analysis is conducted to assess the contribution of the clustering enhancement strategy. Specifically, the proposed framework is compared with its counterpart without clustering enhancement on two representative tasks with clear domain discrepancy, namely DoS(G)→NMRI(W) and DoS(W)→NMRI(G). These tasks are selected because they reflect bidirectional transfer across distinct industrial systems and therefore provide a useful setting for analyzing the effect of structural alignment.

3.2

Evaluation Metrics

To evaluate detection performance, Accuracy (ACC) and F-score (F1) are adopted as the primary metrics. Accuracy measures the proportion of correctly classified samples and is defined as ACC =

𝑇𝑃 + 𝑇𝑁 , 𝑇 𝑃 + 𝑇 𝑁 + 𝐹𝑃 + 𝐹 𝑁

(1)

where 𝑇 𝑃, 𝑇 𝑁 , 𝐹𝑃, and 𝐹 𝑁 denote true positives, true negatives, false positives, and false negatives, respectively. F-score is used to provide a more balanced evaluation by jointly considering precision and recall: F1 =

2 × Precision × Recall , Precision + Recall

(2)

where 𝑇𝑃 . 𝑇𝑃 + 𝐹𝑁 (3) Since industrial intrusion detection may involve class imbalance and unknown attacks, F1 is particularly important for assessing the practical effectiveness of a detector. A model with high accuracy but low F1 may still be unreliable in practice, because it may fail to identify malicious traffic consistently or may produce excessive false alarms. In addition, ROC curves and the area under the ROC curve (AUC) are used for supplementary Precision =

𝑇𝑃 , 𝑇 𝑃 + 𝐹𝑃

Recall =

Table 1: Accuracy of unknown attack detection on four cross-domain tasks. Detection Task

KMM

RF

SVM

NBM

KNN

ANN

DoS(G)→NMRI(W) SMRI(G)→MPCI(W) DoS(W)→NMRI(G) SMRI(W)→MPCI(G)

0.85 0.87 0.84 0.81

0.47 0.49 0.45 0.47

0.51 0.52 0.49 0.49

0.34 0.37 0.29 0.31

0.47 0.48 0.41 0.46

0.52 0.55 0.50 0.50

Table 2: F-score of unknown attack detection on four cross-domain tasks. Detection Task

KMM

RF

SVM

NBM

KNN

ANN

DoS(G)→NMRI(W) SMRI(G)→MPCI(W) DoS(W)→NMRI(G) SMRI(W)→MPCI(G)

0.86 0.84 0.85 0.80

0.22 0.26 0.42 0.24

0.34 0.42 0.27 0.09

0.04 0.34 0.02 0.15

0.25 0.23 0.46 0.48

0.41 0.51 0.26 0.42

analysis of discriminative ability, where the horizontal axis corresponds to the false positive rate (FPR) and the vertical axis denotes the true positive rate (TPR). These complementary metrics provide a more comprehensive view of classifier behavior under different threshold settings.

3.3

Results on Unknown Attack Detection

Table 1 and Table 2 report the accuracy and F-score results of the proposed method and five baseline models on four cross-domain unknown attack detection tasks. As shown in Table 1, the proposed framework consistently achieves the highest accuracy on all four cross-domain tasks. Its accuracy reaches 0.85, 0.87, 0.84, and 0.81, respectively, whereas the baseline methods remain substantially lower. The largest accuracy gain reaches 49% under the selected settings, indicating that the proposed framework can effectively alleviate the performance degradation caused by domain shift and unknown attacks. The superiority of the proposed method is even more evident in terms of F-score, as shown in Table 2. The proposed framework obtains F1 values of 0.86, 0.84, 0.85, and 0.80 on the four tasks, respectively, while the baseline models generally achieve much lower scores. This result suggests that the proposed method not only improves overall classification correctness, but also achieves a better balance between precision and recall. Such a property is especially important in industrial intrusion detection, where both false alarms and missed detections can lead to substantial operational risk. Fig. 5 provides a more intuitive visualization of the comparative results reported in Table 1 and Table 2. The upper panel shows the accuracy comparison, while the lower panel illustrates the F-score comparison across the four cross-domain tasks. It can be observed that the proposed KMM-based framework consistently outperforms all

baseline methods under all transfer settings, and its advantage is particularly clear in terms of F-score. This further confirms that the proposed method is more effective in maintaining a balanced trade-off between precision and recall when detecting unknown attacks in heterogeneous industrial environments. Another important observation from Fig. 5 is that the relative performance gap between the proposed framework and the baseline models remains stable across different source–target transfer directions. This suggests that the benefit of the proposed method does not rely on a single favorable task, but instead reflects a generally improved capability for cross-domain industrial intrusion detection. Moreover, the proposed framework shows stronger robustness on the more challenging reverse-transfer settings, which may be attributed to weaker source-domain informativeness and larger domain discrepancy. These improvements can be attributed to two aspects of the proposed framework. First, feature-based transfer learning identifies a latent representation in which structurally related samples from different industrial domains become more comparable, thereby improving cross-domain generalization. Second, the clustering enhancement strategy provides a coarse structural prior for source–target matching, which reduces unreliable alignment and improves the robustness of feature transfer. Together, these two components enable the detector to exploit transferable knowledge while preserving task-relevant discrimination.

Figure 4: Performance comparison of the proposed method and baseline models on cross-domain unknown attack detection tasks. The results show that the proposed framework consistently achieves superior accuracy and F-score under different source–target transfer settings. Another noteworthy observation from Table 1, Table 2, and Fig. 4 is that the baseline models tend to perform better when G is used as the source domain than when W is used as the source domain. A plausible explanation is that the gas-system

traffic contains richer payload and control-related information, such as pipeline pressure, PID gain parameters, and controller period settings, which provide more informative features for transferable representation learning. In contrast, the water-system traffic mainly reflects water-level setpoint information and may therefore contain less discriminative variation for cross-domain transfer. This difference may partly explain why DoS(G)→NMRI(W) and SMRI(G)→MPCI(W) are generally easier than the reverse transfer settings. From a practical perspective, this observation also suggests that the informativeness of the source domain plays an important role in transfer-based industrial intrusion detection. A source domain with richer operational semantics may provide a stronger basis for learning transferable structure, whereas a weaker source domain may limit the effectiveness of adaptation even if the learning framework is well designed. This insight is useful for real deployment, where practitioners may need to prioritize more informative industrial systems as source environments when constructing transferable detectors.

3.4

Effect of the Clustering Enhancement Strategy

To further evaluate the contribution of the clustering enhancement strategy, additional experiments are conducted on three representative models, namely SVM, KNN, and ANN, over two representative cross-domain tasks: DoS(G)→NMRI(W) and DoS(W)→NMRI(G). For each setting, 10 independent runs are performed to reduce the influence of randomness and improve the reliability of the comparison. After collecting the accuracy values from repeated runs, box plots are generated to compare the performance of each model with and without clustering enhancement. The results show that incorporating clustering enhancement consistently improves detection accuracy, with gains of up to 26% on representative tasks. This confirms that the proposed clustering module makes an independent and meaningful contribution to the overall framework. A likely reason for this improvement is that clustering enhancement introduces coarse structural alignment before latent-space transfer is performed. Instead of aligning all source and target samples directly in a fully global manner, the method first groups samples into clusters and then estimates cluster-level similarity in the PCA-homogenized feature space. This process makes source–target correspondence more reliable, reduces sensitivity to noise and mismatch, and leads to more stable feature adaptation. As a result, the overall framework becomes more robust under challenging cross-domain

industrial traffic conditions.

asymmetric: transferring from a more informative industrial system to a less informative one is generally easier than the reverse direction. Second, structural guidance plays a more important role when domain discrepancy becomes larger, which suggests that simple feature matching alone may be insufficient in challenging industrial scenarios. Third, the effectiveness of the proposed framework indicates that combining latent feature alignment with coarse structural clustering is a promising direction for future industrial cybersecurity research.

4

Figure 5: Visual comparison of the proposed framework and baseline models on four cross-domain unknown attack detection tasks. The upper panel reports the accuracy results, while the lower panel presents the F-score results. The proposed method consistently achieves the best performance across different transfer settings, demonstrating its superiority in both classification correctness and class-balanced detection effectiveness. Moreover, repeated-run analysis indicates that the benefit of clustering enhancement is not limited to average performance improvement. It also reduces performance fluctuation across runs, suggesting that the proposed module contributes to optimization stability. This is particularly valuable in industrial settings, where a detector should not only achieve high mean accuracy, but also maintain reliable behavior under varying initialization and sampling conditions.

3.5

Discussion

Overall, the experimental results verify the effectiveness of the proposed clustering-enhanced domain adaptation framework for industrial control intrusion detection. The proposed method consistently outperforms multiple baseline models on unknown attack detection tasks and achieves clear gains in both accuracy and F-score. Furthermore, the additional analysis of clustering enhancement shows that incorporating cluster-level structural information is beneficial for improving cross-domain alignment and model stability. These findings indicate that the proposed framework provides a practical solution for mitigating data scarcity and domain shift in dynamic industrial environments. At the same time, the results also reveal several important characteristics of the problem. First, cross-domain intrusion detection difficulty is

Conclusion

This paper investigated cross-domain intrusion detection for industrial control traffic in dynamic environments, where distribution discrepancy, limited labeled samples, and unknown attacks make accurate detection particularly challenging. To address these issues, a clustering-enhanced domain adaptation method was proposed. The method integrates feature-based transfer learning with a clustering enhancement strategy, enabling the source and target domains to be aligned in a shared latent subspace while improving cross-domain correlation estimation. Experimental results demonstrated that the proposed method achieved clear advantages in unknown attack detection tasks. Compared with several common baseline models, it consistently improved detection accuracy, F-score, and stability under cross-domain settings. In addition, the clustering enhancement strategy further strengthened performance on representative tasks, confirming its effectiveness in reducing the negative effects of heterogeneous feature distributions and manual parameter dependence. Overall, the proposed framework provides an effective solution for robust and accurate cross-domain intrusion detection in industrial control systems. It offers practical value for addressing data scarcity and domain shift in real industrial environments. Future work will focus on more complex attack scenarios, real-time deployment, and improved adaptability to continually evolving industrial traffic patterns. Acknowledgment: It is an optional section where the authors may write a short text on what should be acknowledged regarding their manuscript. References: [1] Shai Ben-David, John Blitzer, Koby Crammer, and Fernando Pereira. A theory of learning from different domains. Machine Learning, 79(1–2):151–175, 2010. [2] Rihao Chang, Hongbo Jiao, Weizhi Nie, Huijie Guo, Kai Xie, Zihan Wu, Lin Zhao, Yutong Bai,

Yongtao Ma, Lijuan Wang, et al. Organ-agents: Virtual human physiology simulator via llms. arXiv preprint arXiv:2508.14357, 2025. [3] Rihao Chang, Yongtao Ma, Tong Hao, Weijie Wang, and Weizhi Nie. 3d shape knowledge graph for cross-domain 3d shape retrieval. CAAI Transactions on Intelligence Technology, 9(5):1199–1216, 2024. [4] Y. Chen, S. Su, D. Yu, H. He, X. Wang, Y. Ma, and H. Guo. Cross-domain industrial intrusion detection deep model trained with imbalanced data. IEEE Internet of Things Journal, 10:584–596, 2023. [5] Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, François Laviolette, Mario Marchand, and Victor Lempitsky. Domain-adversarial training of neural networks. Journal of Machine Learning Research, 17(59):1–35, 2016. [6] Xuesong Gao, Chuanqi Jiao, Ruidong Chen, Weijie Wang, and Weizhi Nie. Point-pc: Point cloud completion guided by prior knowledge via causal inference. CAAI Transactions on Intelligence Technology, 2025. [7] M. R. Gauthama Raman, Chuadhry Mujeeb Ahmed, and Aditya Mathur. Machine learning for intrusion detection in industrial control systems: Challenges and lessons from experimental evaluation. Cybersecurity, 4(1):27, 2021. [8] Ian T. Jolliffe. Principal Component Analysis. Springer, New York, 2 edition, 2002. [9] Leonard Kaufman and Peter J. Rousseeuw. Partitioning around medoids (program pam). In Finding Groups in Data: An Introduction to Cluster Analysis, pages 68–125. John Wiley & Sons, New York, 1990. [10] Hamza Kheddar, Yassine Himeur, and Ali Ismail Awad. Deep transfer learning for intrusion detection in industrial control networks: A comprehensive review. Journal of Network and Computer Applications, 220:103760, 2023.

Disentangled text-guided object insertion in 3d gaussian scene without spatial priors, 2025. [13] Qi Liang, Ning Xu, Weijie Wang, and Xingjian Long. Multimodal information fusion based on lstm for 3d model retrieval. Multimedia Tools and Applications, 79(45–46):33943–33956, 2020. [14] Mingrui Ma, Weijie Wang, Jie Ning, Jianfeng He, Nicu Sebe, and Bruno Lepri. Large language models for multimodal deformable image registration. arXiv preprint arXiv:2408.10703, 2024. [15] Guofeng Mei, Hao Tang, Xiaoshui Huang, Weijie Wang, Juan Liu, Jian Zhang, Luc Van Gool, and Qiang Wu. Unsupervised deep probabilistic approach for partial point cloud registration. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2023. [16] Haroon Mushtaq, S. U. Khan, M. A. Jan, A. Ullah, and H. A. Khattak. A parallel architecture for the partitioning around medoids (pam) algorithm. Sensors, 18(12):4129, 2018. [17] Weizhi Nie, Ruidong Chen, Weijie Wang, Bruno Lepri, and Nicu Sebe. T2td: Text-3d generation model based on prior knowledge guidance. IEEE Transactions on Pattern Analysis and Machine Intelligence, 47(1):172–189, 2025. [18] Weizhi Nie, Weijie Wang, Anan Liu, and Chuang Chen. Characteristic views extraction modal based-on deep reinforcement learning for 3d model retrieval. In 2019 IEEE International Conference on Image Processing (ICIP), pages 2389–2393, 2019. [19] Weizhi Nie, Weijie Wang, Anan Liu, Jie Nie, and Yuxuan Su. Hgan: Holistic generative adversarial networks for two-dimensional image-based three-dimensional object retrieval. ACM Transactions on Multimedia Computing, Communications, and Applications, 15(4):1–24, 2019.

[11] Moshe Kravchik and Asaf Shabtai. Detecting cyberattacks in industrial control systems using convolutional neural networks. arXiv preprint arXiv:1806.08110, 2018.

[20] Sinno Jialin Pan, Ivor W. Tsang, James T. Kwok, and Qiang Yang. Domain adaptation via transfer component analysis. In Proceedings of the 21st International Joint Conference on Artificial Intelligence (IJCAI), pages 1187–1192, 2009.

[12] Chenxi Li, Weijie Wang, Qiang Li, Bruno Lepri, Nicu Sebe, and Weizhi Nie. Freeinsert:

[21] Karl Pearson. On lines and planes of closest fit to systems of points in space. The London,

Edinburgh, and Dublin Philosophical Magazine and Journal of Science, 2(11):559–572, 1901. [22] Bin Ren, Guofeng Mei, Danda Pani Paudel, Weijie Wang, Yawei Li, Mengyuan Liu, Rita Cucchiara, Luc Van Gool, and Nicu Sebe. Bringing masked autoencoders explicit contrastive properties for point cloud self-supervised learning. In Proceedings of the Asian Conference on Computer Vision (ACCV), 2024. [23] A. Rigo, L. Stornaiuolo, Weijie Wang, M. Martino, Bruno Lepri, Nicu Sebe, and Weizhi Nie. Poci-diff: Position objects consistently and interactively with 3d-layout guided diffusion. arXiv preprint arXiv:2601.14056, 2026. [24] Muhammad Azmi Umer, Khurum Nazir Junejo, Muhammad Taha Jilani, and Aditya P. Mathur. Machine learning for intrusion detection in industrial control systems: Applications, challenges, and recommendations. International Journal of Critical Infrastructure Protection, 38:100516, 2022. [25] Tao Wang, Weijie Wang, Fausto Giunchiglia, Fengzhi Zhao, Ye Zhang, Duo Yu, and Guixia Liu. Mbt-polyp: A new multi-branch memory-augmented transformer for polyp segmentation. Image and Vision Computing, 163:105747, 2025. [26] Tao Wang, Kai Zhang, Weijie Wang, Mingrui Ma, Ye Zhang, He Zhao, and Guixia Liu. U-hrmlp: Refining segmentation boundaries in histopathology images. In 2024 IEEE International Symposium on Biomedical Imaging (ISBI), pages 1–5, 2024. [27] Wei Wang, Zhun Zhong, Weijie Wang, Xi Chen, Charles Ling, Boyu Wang, and Nicu Sebe. Dynamically instance-guided adaptation:

A backward-free approach for test-time domain adaptive semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 24090–24099, 2023. [28] Weijie Wang, Guofeng Mei, Jian Zhang, Nicu Sebe, Bruno Lepri, and Fabio Poiesi. Fully-geometric cross-attention for point cloud registration. In 3DV. IEEE, 2025. [29] Weijie Wang, Wenqi Ren, Guofeng Mei, Bin Ren, Xiaoshui Huang, Fabio Poiesi, Nicu Sebe, and Bruno Lepri. Zeroreg: Zero-shot point cloud registration with foundation models. arXiv preprint arXiv:2312.03032, 2023. [30] Weijie Wang, Jichao Zhang, Chang Liu, Xia Li, Xingqian Xu, Humphrey Shi, Nicu Sebe, and Bruno Lepri. Uvmap-id: A controllable and personalized uv map generative model. In ACM MM, pages 10725–10734, 2024. [31] Weijie Wang, Zhengyu Zhao, Nicu Sebe, and Bruno Lepri. Turn fake into real: Adversarial head turn attacks against deepfake detection. arXiv preprint arXiv:2309.01104, 2023. [32] Xuquan Wang, Feng Zhang, Kai Zhang, Weijie Wang, Xiong Dun, and Jiande Sun. Learning spatial-spectral dual adaptive graph embedding for multispectral and hyperspectral image fusion. Pattern Recognition, 151:110365, 2024. [33] Zibo Xu, Qiang Li, Weizhi Nie, Weijie Wang, and Anan Liu. Structure causal models and llms integration in medical visual question answering. IEEE Transactions on Medical Imaging, 44(8):3476–3489, 2025. [34] Juan Zhao, Sachin Shetty, Jan Wei Pan, Charles Kamhoua, and Kevin Kwiat. Transfer learning for detecting unknown network attacks. EURASIP Journal on Information Security, 2019(1):1, 2019.

Record · ID 13031 · SHA-256 552f65752aec2be7
Conceptio Open Knowledge Archive — every document is proof-bundled with source, license, and retrieval metadata.