Data-driven mitigation of catastrophic forgetting in dynamic physical layer attack detection


1 Introduction↩︎

Optical networks constitute the fundamental infrastructure supporting global communications. As a critical component, they are increasingly targeted by harmful activities and intrusions that may result with service disruptions or eavesdropping. Service degradation at the optical layer can be caused by, for example, targeted fiber cuts, insertion of harmful jamming signals, or polarization scrambling. Eavesdropping can be performed, for example, by fiber tapping via fiber bending or monitoring port access [1], [2]. Due to the extremely high data rates employed in optical networks, even short interruptions at the optical layer may result with large amount of data being lost, compromised or corrupt. Physical-layer breaches may also propagate to upper-layer services, potentially causing cascading and wide-spread service failures [3].

Maintaining service continuity in the presence of physical-layer breaches requires their timely and accurate detection, and tailored response. Real-time monitoring of the physical layer is paramount to its secure operation [4]. In this context, security monitoring methods based on ML are continuously developed to protect the network in an automated manner [5]. Various ML techniques have been demonstrated as paramount for optical network security management. They excel in identifying the related intricate and subtle effects in order to distinguish the causes of the known types of threats [6], [7] as well as detect various novel physical-layer breaches [8]. In multiclass scenarios, concrete attack types can be recognized based on the samples present in the dataset. On the contrary, in binary classification intrusions are distinguished from benign measurements. The latter approach also enables the recognition of novel attacks, as the model can find common patterns among acquired data from past attacks.

Figure 1: ML-based network monitoring system based on OPM telemetry and constantly updated security assessment based on acquired data.

The complex and evolving network security landscape features new data transmission and control paradigms [9], novel attack vectors, changing network attack surface [10] and new types of attack techniques [11]. This requires continuous progress and development of new approaches that can cope with emerging network threats. In our recent research [12], [13], we introduced methods to continuously integrate newly acquired knowledge about attacks into dynamic ML models for physical-layer breach detection. We demonstrated the critical role of dynamic models in mitigating concept drifts, which occur when the data distribution changes due to evolving network intrusions. These drifts can render the traditional, static models obsolete and result in misleading predictions. When an automated system remains outdated, unseen attack traffic may be mislabeled as benign, resulting in potential breaches leading to financial or reputational losses due to the absence of detection.

Figure 1 illustrates the high-level concept of optical network security monitoring system where the physical layer parameters are collected and analyzed to assess whether their values map to normal operating conditions, or if there may be an attack. An optical network controller featuring a dynamic, continuously learning ML-based attack detector is able to consistently adapt and improve its quality. The OPM parameters, indicating the health of optical services, are streamed by the optical transceivers into a data processing module that updates the attack detector with telemetry data from previously encountered events. As shown in the left half of the graph inset, the attack detector, once trained, usually achieves high accuracy in attack detection. When a novel attack is introduced, as indicated with the red dashed line, the detection quality typically momentarily drops, as the related data differs from anything that was present in the training set to date. However, the continued feedback loop allows the system to adapt and regain the attack detection accuracy as it processes the newly-collected OPM samples.

While dynamic ML models excel at learning about new attack types, compared to static ones, they may be more susceptible to catastrophic forgetting of recurring attacks observed earlier. This effect is often observed in continual learning, where a detrimental performance drop can be observed for recurring, previously learned tasks [14]. It gives rise to numerous challenges stemming from unexpected errors on tasks that were previously easily solved. For instance, a well-known attack that had been dormant for an extended period might cease to be recognized by the network controller’s ML module, as it adapted to recognize more recent and sophisticated breaches. This highlights a trade-off between the adaptability and longevity of dynamic network intrusion detection models. A co-existing issue is the rarity of attack examples that can be quickly acquired, resulting in highly imbalanced network intrusion datasets. As the dynamic methods are designed to only process the new data, they are typically incapable of instantly regaining their accuracy, even if samples of a particular attack have previously been processed.

To address this issue, in this paper, we propose a method for accelerating the readaptation of dynamic ML models for network intrusion detection to previously encountered attacks. We focus on the binary scenario which allows for dynamic detection of previously unseen attacks. Building upon our preliminary study in [13], we extend our framework by considering the recurring attacks scenario and developing specialized methods to address the challenge of catastrophic forgetting. While existing research focuses primarily on increasing the complexity of systems based on neural networks [15][17] to cope with the increasing amount of data to be processed over the network lifetime, we take a novel, data-centric view. Our proposed methodology uses historically acquired samples to gradually balance the training datasets used for continuous model updates. By carefully steering the update data imbalance ratio, our framework intelligently utilizes the samples acquired as the network was targeted by malicious actors. In particular, we balance the constant-size update data batches to provide the model with more attack samples and make the benign values no longer dominant. The resulting feedback loop, which is illustrated in Figure 1, is curated to make the best use of the data that is collected over time. To this end, OPM data from the previous occurrence of an attack are sampled among the collected data to improve the model adaptation in the current network state. This is done by replacing some of the recently collected benign OPM samples, that would otherwise be used for model update, with the a bigger pool of available previously-encountered attack examples and keep the update data batch constant in size. To the best of our knowledge, this is the first study in physical-layer security that does not treat data imbalance as a constant descriptor, but selects the most effective portion of the available data for continuous improvement of the intrusion recognition quality.

We evaluate the performance of our approach on an experimental optical networking dataset with six types of diverse physical layer intrusions [18]. Compared to the standard dynamic setting which uses a constant portion of attack samples when an attack reappears, we decrease the model instability upon a reoccurrence of an attack, measured in standard deviation of BAC between different attack types, by half. Compared to a baseline approach from the literature which relies on increasing the depth of the neural network model, our proposed approach achieves 6% faster return to previous accuracy after an intrusion is reintroduced to the network. Moreover, while the baseline achieves faster model adaptation at an increase in model complexity coming from the additional neural network layer, the proposed method achieves the same performance without such overhead, relying on data curation instead. We further combine our data-based methodology with the neural network depth-increasing baseline, and achieve an additional 37% reduction in the adaptation time of the dynamic attack detector to recurring intrusions with improved stability manifested by a 73% decrease in standard deviation of BAC between attack sequence orderings.

The remainder of this paper is organized as follows. Section 2 presents the background concepts and reviews the related literature. Section 3 presents the proposed solution based on balancing datasets using data acquired during evolving attacks. Section 4 presents the experimental scenarios and data considered in this work. Section 5 presents a comparative performance analysis of the proposed approach and the baselines. Finally, Section 6 concludes this work.

2 Background and Related Work↩︎

Attacks exploiting the vulnerabilities at the physical layer are typically categorized into those aimed at service disruption and eavesdropping. Service disruption techniques include in-band jamming, where a jamming signal overlaps with a targeted channel and adds unfilterable noise; out-of-band jamming, where a jamming signal is separated in spectrum and causes gain competition in erbium-doped fiber amplifiers; and polarization scrambling, where the fiber is squeezed at a high frequency, resulting in polarization modulation that causes transmission errors [19]. Eavesdropping can be performed by monitoring port access, evanescent coupling, V-groove cuts, and micro/macro bending [20], [21] that causes a portion of light to leak out from the fiber core and onto an eavesdropper’s photodetector.

Physical-layer security management relies on three pillars: attack surface reduction, attack detection and remediation. The first pillar encompasses understanding the vulnerabilities, gauging the effects of attacks, and minimizing the attack surface. Methods for reducing network vulnerability to service disruption attacks include security-aware network design [22][24] and service provisioning [25], [26], while protection from eavesdropping typically relies on encryption at various network layers, including the optical [27]. The third pillar, devoted to attack remediation, encompasses techniques that neutralize the threat and recover the affected optical services, e.g., by rerouting to backup routes tailored to protect from breaches [28], or adapting their frequency and/or modulation format [29].

The central security management pillar, which is also at the core of this work, refers to quick and accurate of detection of attacks. Traditional intrusion detection systems rely on collecting telemetry data from field-deployed devices. In core optical networks, which are in the focus of this work, data is typically collected from commercial, off-the-shelf coherent receivers that expose a rich dataset of OPM parameters to the optical network controller. The information acquired over time provides operators with historical data on different observed attacks. Specialized detectors based on supervised learning can be trained to classify known attacks and raise an alarm if such intrusions are observed again in the future [30][32]. The developed methods allow recognizing multiple attack types [33], eavesdropping [34], [35], or distinguishing attack traffic from benign [36].

While supervised learning techniques have been demonstrated to classify threats at a very high accuracy, malicious actors continuously advance their methods, developing new and previously unseen attack types that are difficult for specialized models to detect. In this context, unsupervised learning approaches are particularly effective at identifying anomalies in telemetry data, enabling operators to detect suspicious activities within their networks [37], [38] and analyze their root causes [39]. A promising direction to address the challenge of evolving attack strategies is employing continuously updated binary classifiers trained on datasets with multiple attack types, which provide the models with the ability to adapt and improve over time [12], [40].

In ML, changes in the underlying data distribution over time, such as those caused by evolving network intrusions, are referred to as concept drift [41]. To address this challenge, specialized methods have been developed to adapt to changing data distributions while maintaining high detection performance [42]. A major group of such approaches is based on ensemble learning, where the set of classifiers is continuously updated to balance previously acquired knowledge with information from newly observed data [43]. In the context of intrusion detection, window-based methods constitute a fundamental adaptation strategy [44]. In this setting, a model is retrained from scratch once a predefined batch of new data becomes available, keeping the active model up to date. More advanced approaches update the neural network incrementally through partial fitting [40], [45]. In this approach, a neural network model, such as an MLP, is not retrained from scratch but instead fine-tuned using newly available data while preserving the knowledge encoded in its weights. Self-supervised learning is another effective approach in this setting [46]. Here, the model generates pseudo-labels for newly observed data based on the limited information available. Finally, continual learning methods have also been explored to detect and adapt to evolving attacker techniques [47], [48] and to improve the robustness of intrusion detection models themselves [49]. These methods enable a model to learn successive tasks while retaining knowledge acquired from previous tasks to reduce catastrophic forgetting.

A particular type of concept drift is recurring concept drift, in which previously observed concepts reappear after a period of absence [50]. This phenomenon naturally occurs in network security monitoring when previously encountered attacks reemerge. As an example, consider an optical communication system operating over three consecutive time periods. During the first period, the network experiences a polarization scrambling attack, and the intrusion detection model learns to recognize its characteristic signatures from OPM data. In the second period, the attacker switches to a jamming attack, previously unknown to the model, requiring it to adapt to a different distribution of observations. Finally, the attacker returns to the original polarization scrambling attack. A dynamic model that has completely adapted to the jamming attack may no longer recognize the signatures of polarization scrambling, even though it had previously learned them. This phenomenon, in which a model loses previously acquired knowledge while learning new concepts, is known as catastrophic forgetting [51]. Conversely, relying solely on a static model is also insufficient, as it cannot adapt to genuinely new attack patterns absent from the training data. Consequently, adaptive intrusion detection models must balance learning new concepts while retaining previously acquired knowledge that may become relevant again when attacks reoccur.

To the best of our knowledge, the issue of reoccurring network attacks was only briefly discussed in the context of the IP layer through a specialized neural network architecture [52]. However, it has never been addressed in the context of optical network security. This work closes this research gap by proposing a new approach based on utilizing telemetry data that is collected by the network operators by default, without requiring specialized monitoring devices.

3 Data-driven model updating↩︎

The approach proposed in this work is based on the concept of utilizing continuously collected data to balance updating data for dynamic attack detectors. Typical network conditions provide abundance of data representing normal operating state, and scarce attack samples. Recent studies in meta-learning, which exploits dataset meta-features to characterize learning problems and support algorithm selection, indicate that dataset imbalance is one of the key factors contributing to the difficulty of classification tasks [53], [54]. Consequently, balancing the training datasets can simplify the classification task. Building upon this observation, our proposed framework utilizes the past attack data collected during network operation. Contrary to conventional dynamic methods which only process the newly incoming data, we make use of historical samples that are anyway collected and stored by the operators.

Figure 2: The proposed framework of updating the attack detection model with balanced datasets after an attack reappears.

Figure 2 illustrates the underlying idea of the methodology. As more attack data becomes available over time, the dataset used to update the ML model can gradually become more balanced, enhancing the model’s performance. Let us consider the detailed sequence of actions shown in the figure.

Initially, access to attack samples is limited, and benign samples, depicted with gray color, constitute the majority of the training data. In the figure, around 25 s, attack type A is inflicted and the model performance plunges. To adapt, the dynamic model is trained and updated using an imbalanced dataset, as new attack samples are extremely rare. Our previous work [12], [13] demonstrated that gradually updating the detector with samples of the current intrusion in such an imbalanced setting improves detection accuracy. This improvement is achieved without any architectural modifications to the model. It is also quick, as the model update on a batch of 100 samples acquired per minute takes under 6 ms. An attacker can bypass the benefits of dynamic model adaptation by changing the attack type, denoted as introducing Attack B in the figure, which triggers another cycle of performance drop followed by adaptation. The second graph from the top shows the performance of a standard dynamic attack detector. When the attacker re-introduces Attack A, the model, affected by catastrophic forgetting, again treats it as new attack and initiates the same adaptation process.

Our proposed approach, illustrated in the third graph from the top, addresses the issue of catastrophic forgetting by balancing the dataset used for model update with historical attack data instead of waiting for scarce new samples to accumulate. To identify whether historical data that represents this attack type is available in the telemetry database and should be pulled for model update, nearest-neighbor matching with a distance threshold or a similar approach can be used. To maintain a constant batch size, benign examples are then randomly sampled from the available pool, and attack examples are retrieved from the historical data. This approach creates a mixture of current and past samples from this attack type, resulting in a balanced dataset that improves accuracy more rapidly. This process is also referred to as the rehearsal strategy [55], [56], where past information is periodically replayed to the model to strengthen connections for memories it has already learned. Thus, a network operator can effectively utilize the data acquired over time under various conditions, with the expected significant improvement in performance without any architectural modifications.

Figure 3: Balancing the update dataset to overcome catastrophic forgetting.

The proposed method is formally presented in Algorithm 3. The base ML model is a dynamic attack detector that is periodically updated with continuously acquired OPM data (line [line:samples95incoming]). Being a crucial a part of the real-time network monitoring system, the model scrutinizes every incoming telemetry sample (line [line:classify95sample]). As a dynamic detector operating in a data stream mining setting, it employs chunk-based learning. In this setting, the model is updated after a predefined number of new samples \(S\) (e.g., 100) has been collected (line [line:buffer95full95check]). We utilize the test-then-train protocol, where the model performance on the buffer is evaluated (line [line:test]) and forms the basis for the decision stage. In case a novel attack type has been introduced, the accuracy drops sharply. Thus, a pre-set accuracy threshold \(T\) (e.g., 85%) is considered as a deciding factor. Model underperformance triggers the balancing strategy. To this end, the attack samples are counted (line [line:count95current95attack95samples]). With the fixed buffer size, it’s straightforward to calculate the required number of samples to achieve a balanced dataset, as they should represent half of the total (line [line:determine95number95of95needed95samples]). The corresponding number of benign samples from the current data batch is then randomly chosen (line [line:random95select]) and replaced with attack samples from the telemetry database (line [line:replace95samples]). The resulting data batch is then used to partially fit the model. If the accuracy threshold was not met, then the original, imbalanced batch is used. The specific model update procedure depends on the underlying ML algorithm. For a neural network, a single optimization pass is performed to update the model weights. For an ensemble model, the update may instead involve a pruning procedure. The proposed methodology is model agnostic, and compatible with any ML algorithm capable of incremental learning, or with a classifier ensemble.

4 Experimental setup and dataset↩︎

The dataset used in this work consists of OPM samples collected during a range of attacks performed in a laboratory environment described in [19]. The physical-layer security data analyzed in this study was gathered through a series of experiments in which an optical network testbed was exposed to multiple attacks designed to disrupt service operation. The testbed includes six nodes equipped with coherent transceivers and Reconfigurable Optical Add-Drop Multiplexers (ROADMs), one node containing an Erbium-Doped Fiber Amplifier (EDFA), and 10 optical fiber links. The two monitored channels correspond to two optical 200 Gbit/s polarization-multiplexed 16-Quadrature Amplitude Modulation (16QAM) signals centered at 195.2 and 195.3 THz. An overview of the experimental setup used for data collection is shown in Figure 4. A comprehensive description of the testbed and the conducted experiments can be found in previous work [18], [19].

Figure 4: Experimental testbed where the dataset of OPM parameters from attack scenarios was collected [18], [19].

Each attack type, as well as normal traffic, is represented by 1440 one-day traces, described using 31 distinct OPM parameters summarized in Table 1. It is important to note that the parameters used in the dataset are those already monitored and recorded by network operators. This ensures that the detectors developed and analyzed in this work can be readily deployed in real-world environments without requiring additional instrumentation or data collection.

Table 1: OPM parameters of each data sample.
Description Acronym
Chromatic Dispersion CD
Differential Group Delay DGD
Optical Signal to Noise Ratio OSNR
Polarization Dependent Loss PDL
Q factor Q-factor
Block Errors before FEC BE-FEC
Bit Error Rate before FEC BER-FEC
Uncorrected Block UBE-FEC
Bit Error Rate after FEC BER-POST-FEC
Optical Power Received OPR
Optical Power Transmitted OPT
Optical Frequency Transmitted OFT
Optical Frequency Received OFR
Loss Of Signal LOS
The maximum, minimum and average values per 1-min observation interval are reported for all parameters except BE-FEC, UBE-FEC, and LOS.

We consider three types of attacks: in-band jamming (INB), out-of-band jamming (OOB), and polarization scrambling (POL). For in-band jamming, a low-power jamming signal is inserted within the bandwidth of the signal under test through a passive coupler, introducing unfilterable noise. We consider two power levels for the jamming signal: 10 and 7 dB below the channel under test, corresponding to a lighter (INBLGT) and a stronger (INBSTR) attack intensity, respectively.

Out-of-band jamming employs an intrusion signal with a frequency separate from the channel’s bandwidth and higher power, resulting in a reduction in the amplifier gain allocated to the legitimate channel. We also consider two power levels for the jamming signal: 3 and 8.7 dB above the channel under test, representing a lighter (OOBLGT) and a stronger (OOBSTR) attack intensity, respectively.

Figure 5: Static vs dynamic model with recurring attacks. Average BAC from 100 experiment replications (each replication consisted of a random attack sequence repeated twice) with confidence intervals.

Polarization modulation attack involves attaching a polarization modulator to the fiber, comprising a fiber squeezer that induces stress-induced birefringence and causes polarization modulation. The induced changes occur at a faster rate than the coherent receiver’s polarization recovery algorithm, leading to burst errors without affecting the power or frequency of the transmitted signal. The modulator is driven by a sine wave signal with a frequency of 136 kHz and peak-to-peak amplitudes of 0.4 and 1.6 V, respectively, simulating a lighter (POLLGT) and a stronger (POLSTR) attack intensity.

In the ML experiments conducted in this paper, we initially employ a 15:100 attack-to-normal ratio. Each experiment is replicated 100 times, resulting in 100 random stratified data samplings from the original, balanced dataset [18]. As we consider a streaming scenario, the six attacks are introduced to the system in a sequential manner. To achieve this, while maintaining the 15:100 class distribution, we inject attack samples from only one type at a time. Specifically, the first 200 batches contain a single attack type, the subsequent 200 batches a different one, and so forth. All attack types share the same label, ensuring that the model remains unaware of the changing nature of the attacks over time. Given that our dataset encompasses six attack types, there are 720 possible attack orderings. In the subsequent section, we analyze the results averaged over 100 randomly selected sequences.

Figure 6: Imbalanced original vs reversed attack order recurring attacks (only the recurring part–see x-axis). Average BAC with standard deviation from 100 experiment replications (attack orderings).

To enable a direct comparison with literature baselines, we utilize the MLP as the base ML algorithm. We employ the architecture that proved effective for this task in previous work [12], [13]–a single hidden layer of 100 neurons. To update the model with subsequent data batches, we use the partial fit procedure [57], which performs one optimization pass on each provided mini-batch while preserving the learned model parameters between calls. This allows the network to be updated iteratively as new data become available without reinitializing the model. In the experiments reported in [12], the periodical model update takes approximately 5 ms on a laptop if this MLP architecture is used with 100-sample batches.

A baseline solution from the literature considered in this work is a recently proposed idea to increase the depth of the neural network employed for attack detection [15]. This method is effective as the layers responsible for past tasks are sustained [16], [17]. To compare the proposed scheme with the baseline, we begin the experimental part with the same architecture of a single hidden layer containing 100 neurons. In the increased depth modification, we introduce a second hidden layer with 50 neurons.

5 Results↩︎

To assess the impact of attack reappearance on its detection accuracy, we begin with exploratory experiments to verify the effects on a traditional static and dynamic model. After verifying that catastrophic forgetting is present and coping mechanisms are required to increase the model adaptation speed, we compare the performance of the proposed methodology to the literature baseline. We measure the performance in terms of the average BAC obtained for each 100-sample batch.

5.1 Impact of attack reappearance on traditional static and dynamic detectors↩︎

Figure 5 shows the performance of the static and dynamically-adapting MLP models as in [13]. Both models were trained on imbalanced attack data without any additional mechanisms to cope with catastrophic forgetting. The experiment demonstrates the expected behavior in terms of BAC. The statically trained neural network is able to correctly detect attack types seen during training, even if they reappear (which is the case for attack 1). However, it is not able to adapt to unseen types of intrusions (all other attack types). In contrast, the dynamically adapting model is improving its detection accuracy as it acquires more data about the current network state. The sudden drop in detection accuracy is smaller with every new attack that is introduced to the network. However, the reappearance of previously encountered attacks still causes a drop, highlighting a tradeoff between adaptability and longevity of dynamic network intrusion detection models.

Figure 7: Standard model vs increased depth model for recurring attacks (only the recurring part–see x-axis). Average BAC with standard deviation.
Figure 8: Imbalanced vs imbalanced to balanced with recurring attacks (only the recurring part–see x-axis). Average BAC with standard deviation.

The second experiment evaluates the impact of the attacks’ order of (re)appearance. To this end, we placed samples of the six attacks considered in this work in a sequence and then repeated the experiment in the same and the reversed order. The results, depicted in Figure 6, indicate that the order does not have a discernible impact on the detector’s accuracy when no additional mechanisms are introduced. The figure presents a zoomed-in section of the results, focusing on the second segment (attack reappearance), as indicated by the x-axis. The leftmost section of this segment presents the most intriguing insight: the active attack in the "reversed" case was not altered there, i.e,. it is the same as the attack in the preceding section (not shown). Consequently, there is no decline in accuracy. Nevertheless, there are almost no differences in the average and standard deviation of BAC in the subsequent attacks introduced in the experiment. The catastrophic forgetting is, thus, present regardless of how much time passed from the past encounter of a particular attack.

The final experiment in this subsection assesses the efficacy of the baseline solution in the context of attack detection. We investigate whether the solution proposed in the literature, namely the increase of the depth of a neural network, is effective in the dynamic attack detection scenario. Figure 7 presents the results, depicting the BAC from the second occurrence of the attacks (note that the x-axis starts at data batch 1200). Indeed, the average BAC is higher for the increased-depth MLP, demonstrating the solution’s effectiveness in the physical layer security use case. In each of the segments, the mean BAC of the increased depth model is on average 2% higher. Furthermore, the difference in standard deviation across the 100 attack orderings is as high as 165%, illustrating the model stability regardless of attack sequence. Consequently, the model of increased depth performs better on average and exhibits significantly greater stability, irrespective of the attack reappearance order. This demonstrates its effectiveness as a method of mitigating catastrophic forgetting.

5.2 Performance evaluation of the proposed mechanism↩︎

The first experiment in this subsection aims at evaluating the performance of the proposed solution, which doesn’t require any model modifications but rather changes how data is used. Figure 8 shows the benefits of balancing the training dataset of known attacks over time. As for the previous experiments, the plot shows the second occurrence of the attacks, as indicated on the x-axis. Despite not modifying the model, the method proves effective. The average BAC improves slightly within each attack section and is on average 1% higher than for the case without balancing. More importantly, the standard deviation is significantly reduced–on average it is 110% lower when the balancing mechanism is introduced. With 100 experiments repetitions, that means that the results are more stable irrespective of the random attack sequence. This effect is shared with the literature benchmark of increasing the neural network depth. Another result that is improved is the convergence speed after the change of attack conditions. The balancing mechanism allows achieving the mean accuracy in each segment on average 13.5 batches faster than the standard dynamic approach using imbalanced data. In other words, upon an attack type change, the recognition quality is regained after processing on average 1350 samples fewer.

Figure 9 compares the performance of our approach to the literature benchmark. The results show that the proposed mechanism of balancing the dataset without changing the model architecture achieves performance similar to the benchmark that relies on increasing the model complexity. The main difference is in their convergence speed. Specifically, here we measured the time it takes to reach the median detection accuracy after the active attack is introduced. The increased neural network depth approach takes an average of 127 data batches to achieve this, while the data balancing approach requires 119 data batches–which is 6.3% less. On the other hand, the time to regain an acceptable BAC of 0.95 is faster for the literature method of increasing depth by 13 data batches on average.

Figure 9: Balancing the dataset vs increasing depth of the neural network with recurring attacks (only the recurring part–see x-axis). Average BAC with standard deviation.

Finally, since the proposed and baseline mechanisms each bring certain benefits to attack detection, we evaluate whether their integration would yield meaningful advantages. Figure 10 shows the performance of their combination, compared to the baseline. Balancing the dataset in conjunction with increasing neural network depth further enhances the results. Primarily, we reduce the standard deviation, increasing the stability of the results. The average standard deviation for each section improves by 73%. Additionally, the time to reach 0.95 BAC after an active attack change is improved by 37%. This indicates that, in this final configuration, the accuracy drop is remarkably minimal and transient.

Figure 10: Balancing the dataset and increasing depth of the neural network with recurring attacks (only the recurring part–see x-axis). Average BAC with standard deviation.

6 Conclusions↩︎

In this paper, we addressed the problem of recurring physical-layer attacks in dynamically evolving optical networks. We focused on the critical tradeoff between adapting to evolving attacks and retaining previously acquired knowledge of attack techniques over the long term. To this end, we proposed a method for balancing the training data used to update attack detectors based on samples collected during attacks. A threshold-based mechanism monitors the model’s accuracy and triggers the balancing process when performance degrades, accelerating adaptation through a rehearsal strategy.

We demonstrated the effectiveness of the proposed approach through a series of experiments using real data collected in a laboratory environment. Our solution achieves performance comparable to a baseline from the literature that improves robustness by increasing the depth of the neural network. These results show that model performance can be improved simply by adjusting the proportions of data used for retraining, without modifying the network architecture. Finally, we combined both approaches, resulting in even more stable performance.

In the future, we plan to develop a hybrid system that combines the strengths of dynamic and static models. We also plan to extend our analysis to other ML tasks in network optimization, including traffic prediction.

Funding↩︎

This work was supported by the statutory funds of the Department of Systems and Computer Networks, Wrocław University of Science and Technology, Poland, the European Commission through 5G-TACTIC (101127973), the Swedish Research Council (2023-05249), and VINNOVA through the Celtic-Next SUSTAINET-Advance project (2025-02987).

Acknowledgments↩︎

The authors thank Marco Schiano and Andrea Di Giglio for their contribution to collecting the dataset used in this work. We gratefully acknowledge Infinera (now part of Nokia) for providing the Groove G30 transponder.

References↩︎

[1]
D. Dahan and U. Mahlab, “Security threats and protection procedures for optical networks,” IET Optoelectronics, vol. 11, no. 5, pp. 186–200, 2017.
[2]
T. Uematsu, H. Hirota, T. Kawano, T. Kiyokura, and T. Manabe, “Design of a temporary optical coupler using fiber bending for traffic monitoring,” IEEE Photonics Journal, vol. 9, no. 6, pp. 1–13, 2017.
[3]
J. Rak, R. Girao-Silva, T. Gomes, G. Ellinas, B. Kantarci, and M. Tornatore, “Disaster resilience of optical networks: State of the art, challenges, and opportunities,” Optical Switching and Networking, vol. 42, p. 100619, 2021.
[4]
N. Skorin-Kapov, M. Furdek, S. Zsigmond, and L. Wosinska, “Physical-layer security in evolving optical networks,” IEEE Communications Magazine, vol. 54, no. 8, pp. 110–117, 2016.
[5]
M. Furdek, C. Natalino, A. Di Giglio, and M. Schiano, “Optical network security management: Requirements, architecture, and efficient machine learning models for detection of evolving threats,” Journal of Optical Communications and Networking, vol. 13, no. 2, pp. A144–A155, 2021.
[6]
B. Molina-Coronado, U. Mori, A. Mendiburu, and J. Miguel-Alonso, “Survey of network intrusion detection methods from the perspective of the knowledge discovery in databases process,” IEEE Transactions on Network and Service Management, vol. 17, no. 4, pp. 2451–2479, 2020.
[7]
D. Rafique, T. Szyrkowiec, H. Grießer, A. Autenrieth, and J.-P. Elbers, “Cognitive assurance architecture for optical network fault management,” Journal of Lightwave Technology, vol. 36, no. 7, pp. 1443–1450, 2017.
[8]
C. Natalino, F. P. Monteiro, and P. Monti, “A unified siamese learning framework for zero-day anomaly detection and classification in optical networks,” in Optical fiber communication conference (OFC), 2026, pp. M3A–2.
[9]
N. Andriolli et al., “Optical networks management and control: A review and recent challenges,” Optical Switching and Networking, vol. 44, p. 100652, 2022.
[10]
B. Ayodele and V. Buttigieg, “SDN as a defence mechanism: A comprehensive survey,” International Journal of Information Security, vol. 23, no. 1, pp. 141–185, 2024.
[11]
A. Gazani et al., “Optical network security: Threats, techniques, and future directions,” Electronics, vol. 15, no. 4, p. 878, 2026.
[12]
A. Knapinska and M. Furdek, “Experimental analysis of adaptive ML classifiers for dynamic detection of emerging physical-layer attacks,” in 51st european conference on optical communications (ECOC), 2025.
[13]
A. Knapińska and M. Furdek, “Dynamic ML models for evolving networks: What, where and how?” in Optical fiber communication conference (OFC), 2026, pp. M3A–1.
[14]
L. Wang, X. Zhang, H. Su, and J. Zhu, “A comprehensive survey of continual learning: Theory, method and application,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 46, no. 8, pp. 5362–5383, 2024.
[15]
J. Kozal and M. Woźniak, “Increasing depth of neural networks for life-long learning,” Information Fusion, vol. 98, p. 101829, 2023.
[16]
T. L. Hayes, K. Kafle, R. Shrestha, M. Acharya, and C. Kanan, “Remind your neural network to prevent catastrophic forgetting,” in European conference on computer vision (ECCV), 2020, pp. 466–483.
[17]
J. Kirkpatrick et al., “Overcoming catastrophic forgetting in neural networks,” Proceedings of the National Academy of Sciences, vol. 114, no. 13, pp. 3521–3526, 2017.
[18]
M. Furdek, C. Natalino, F. Lipp, D. Hock, A. D. Giglio, and M. Schiano, “Machine learning for optical network security monitoring: A practical perspective,” Journal of Lightwave Technology, vol. 38, no. 11, pp. 2860–2871, 2020.
[19]
M. Furdek, C. Natalino, M. Schiano, and A. Di Giglio, “Experiment-based detection of service disruption attacks in optical networks using data analytics and unsupervised learning,” in Metro and data center optical networks and short-reach links II, 2019, vol. 10946, pp. 73–82.
[20]
A. Harris and P. Castle, “Bend loss measurements on high numerical aperture single-mode fibers as a function of wavelength and bend radius,” Journal of Lightwave Technology, vol. 4, no. 1, pp. 34–40, 1986, doi: 10.1109/JLT.1986.1074626.
[21]
S. Karlsson, R. Lin, L. Wosinska, and P. Monti, “Eavesdropping g.652 vs. G.657 fibres: A performance comparison,” in 26th international conference on optical network design and modeling (ONDM), 2022.
[22]
N. Skorin-Kapov, J. Chen, and L. Wosinska, “A new approach to optical networks security: Attack-aware routing and wavelength assignment,” IEEE/ACM Transactions on Networking, vol. 18, no. 3, pp. 750–760, 2010, doi: 10.1109/TNET.2009.2031555.
[23]
L. Hu et al., “Security enhanced routing and spectrum allocation against crosstalk attacks for confidential lightpath in elastic optical networks,” Opt. Express, vol. 32, no. 5, pp. 7254–7275, Feb. 2024, doi: 10.1364/OE.511055.
[24]
M. Li et al., “Defending QKD networks: Routing and wavelength assignment to mitigate physical-layer attacks,” IEEE Transactions on Quantum Engineering, vol. 7, pp. 4101113–4101113, 2026, doi: 10.1109/TQE.2026.3684081.
[25]
J. Zhu and Z. Zhu, “Physical-layer security in MCF-based SDM-EONs: Would crosstalk-aware service provisioning be good enough?” Journal of Lightwave Technology, vol. 35, no. 22, pp. 4826–4837, 2017, doi: 10.1109/JLT.2017.2757956.
[26]
G. Savva, K. Manousakis, J. Rak, I. Tomkos, and G. Ellinas, “High-power jamming attack mitigation techniques in spectrally-spatially flexible optical networks,” IEEE Access, vol. 9, pp. 28558–28572, 2021, doi: 10.1109/ACCESS.2021.3058259.
[27]
T. Liu et al., “Eavesdropping-aware survivable routing in physical-layer secured optical networks,” J. Opt. Commun. Netw., vol. 17, no. 2, pp. 127–138, Feb. 2025, doi: 10.1364/JOCN.541885.
[28]
M. Furdek, N. Skorin-Kapov, and L. Wosinska, “Attack-aware dedicated path protection in optical networks,” Journal of Lightwave Technology, vol. 34, no. 4, pp. 1050–1061, 2016, doi: 10.1109/JLT.2015.2509161.
[29]
C. Papapavlou, K. Paximadis, G. Tzimas, and I. Savelona, “Optical frequency hopping techniques for secure fiber-optic networks,” in 12th international conference on information, intelligence, systems & applications (IISA), 2021.
[30]
V. G. da Silva Ruffo et al., “Anomaly and intrusion detection using deep learning for software-defined networks: A survey,” Expert Systems with Applications, vol. 256, p. 124982, 2024, doi: https://doi.org/10.1016/j.eswa.2024.124982.
[31]
R. Kaur, D. Gabrijelčič, and T. Klobučar, “Artificial intelligence for cybersecurity: Literature review and future research directions,” Information Fusion, vol. 97, p. 101804, 2023.
[32]
F. Irram, M. Ali, M. Naeem, and S. Mumtaz, “Physical layer security for beyond 5G/6G networks: Emerging technologies and future directions,” Journal of Network and Computer Applications, vol. 206, p. 103431, 2022.
[33]
J. Sakhnini, H. Karimipour, A. Dehghantanha, and R. M. Parizi, “Physical layer attack identification and localization in cyber–physical grid: An ensemble deep learning based approach,” Physical Communication, vol. 47, p. 101394, 2021.
[34]
L. Sadighi, S. Karlsson, C. Natalino, and M. Furdek, “Machine learning-based polarization signature analysis for detection and categorization of eavesdropping and harmful events,” in Optical fiber communications conference and exhibition (OFC), 2024, pp. M1H–1.
[35]
L. Sadighi, S. Karlsson, C. Natalino, L. Wosinska, M. Ruffini, and M. Furdek, “Detection and classification of eavesdropping and mechanical vibrations in fiber optical networks by analyzing polarization signatures over a noisy environment,” in 50th european conference on optical communication (ECOC), 2024.
[36]
T. M. Hoang, T. Q. Duong, H. D. Tuan, S. Lambotharan, and L. Hanzo, “Physical layer security: Detection of active eavesdropping attacks by support vector machines,” IEEE Access, vol. 9, pp. 31595–31607, 2021.
[37]
C. Natalino et al., “Flexible and scalable ML-based diagnosis module for optical networks: A security use case,” Journal of Optical Communications and Networking, vol. 15, no. 8, pp. C155–C165, 2023, doi: 10.1364/JOCN.482932.
[38]
P. Lechowicz, C. Natalino, V. Karunakaran, A. Autenrieth, T. Bauschert, and P. Monti, “Trade-offs in implementing unsupervised anomaly detection with TAPI-based streaming telemetry,” in 25th international conference on high performance switching and routing (HPSR), 2024.
[39]
C. Natalino, M. Schiano, A. Di Giglio, and M. Furdek, “Root cause analysis for autonomous optical network security management,” IEEE Transactions on Network and Service Management, vol. 19, no. 3, pp. 2702–2713, 2022.
[40]
A. Knapińska and M. Furdek, “Dynamic ML model updating strategies for detection of evolving network attacks,” in 15th international workshop on resilient networks design and modeling (RNDM), 2025.
[41]
J. Lu, A. Liu, F. Dong, F. Gu, J. Gama, and G. Zhang, “Learning under concept drift: A review,” IEEE Transactions on Knowledge and Data Engineering, vol. 31, no. 12, pp. 2346–2363, 2019.
[42]
G. Aguiar, B. Krawczyk, and A. Cano, “A survey on learning from imbalanced data streams: Taxonomy, challenges, empirical study, and reproducible experimental framework,” Machine learning, vol. 113, no. 7, pp. 4165–4243, 2024.
[43]
B. Krawczyk, L. L. Minku, J. Gama, J. Stefanowski, and M. Woźniak, “Ensemble learning for data stream analysis: A survey,” Information Fusion, vol. 37, pp. 132–156, 2017.
[44]
X. Yu, L. Ruan, J. S. Evans, and E. Wong, “Adaptive windowing-based concept drift detection and adaptation framework for human-to-machine applications over future communication networks,” Journal of Optical Communications and Networking, vol. 17, no. 4, pp. 338–351, 2025.
[45]
G. Andresini, A. Appice, C. Loglisci, V. Belvedere, D. Redavid, and D. Malerba, “A network intrusion detection system for concept drifting network traffic data,” in International conference on discovery science, 2021, pp. 111–121.
[46]
S. Yang, X. Zheng, J. Li, J. Xu, X. Zhang, and E. C. H. Ngai, “Self-supervised adaptation method to concept drift for network intrusion detection,” IEEE Transactions on Dependable and Secure Computing, vol. 22, no. 6, pp. 7632–7646, 2025.
[47]
X. Zhang et al., “Continual learning with strategic selection and forgetting for network intrusion detection,” in IEEE conference on computer communications (INFOCOM), 2025.
[48]
S. Fuhrman, O. Gungor, and T. Rosing, CND-IDS: Continual novelty detection for intrusion detection systems,” in 62nd ACM/IEEE design automation conference (DAC), 2025.
[49]
J. Kozal, J. Zwolińska, M. Klonowski, and M. Woźniak, “Defending network ids against adversarial examples with continual learning,” in IEEE international conference on data mining workshops (ICDMW), 2023, pp. 60–69.
[50]
J. Gama, I. Žliobaitė, A. Bifet, M. Pechenizkiy, and A. Bouchachia, “A survey on concept drift adaptation,” ACM Computing Surveys, vol. 46, no. 4, pp. 1–37, 2014.
[51]
R. M. French, “Catastrophic forgetting in connectionist networks,” Trends in cognitive sciences, vol. 3, no. 4, pp. 128–135, 1999.
[52]
J. Ying, M. Zheng, J. Chen, R. Chen, Z. Zhua, and T. Zhu, METANOIA: A lifelong intrusion detection and investigation system for mitigating concept drift,” arXiv preprint arXiv:2501.00438, 2024.
[53]
A. C. Lorena, L. P. Garcia, J. Lehmann, M. C. Souto, and T. K. Ho, How complex is your classification problem? A survey on measuring classification complexity,” ACM Computing Surveys, vol. 52, no. 5, pp. 1–34, 2019.
[54]
J. Komorniczak and P. Ksieniewicz, “Problexity—an open-source python library for supervised learning problem complexity assessment,” Neurocomputing, vol. 521, pp. 126–136, 2023.
[55]
D. Maltoni and V. Lomonaco, “Continuous learning in single-incremental-task scenarios,” Neural Networks, vol. 116, pp. 56–73, 2019.
[56]
B. Benkő, “Example forgetting and rehearsal in continual learning,” Pattern Recognition Letters, vol. 179, pp. 65–72, 2024.
[57]
F. Pedregosa et al., “Scikit-learn: Machine learning in python,” the Journal of machine Learning research, vol. 12, pp. 2825–2830, 2011.