Practical Implementation of Artificial Intelligence in Cybersecurity, One-Class SVM for Anomaly Detection in Network Traffic
| dc.contributor.author | Wołoszyn, Jacek | |
| dc.contributor.author | Wołoszyn, Michał | |
| dc.date.accessioned | 2026-03-27T21:40:00Z | |
| dc.date.available | 2026-03-27T21:40:00Z | |
| dc.date.issued | 2025-12 | |
| dc.description.abstract | The presented material provides a detailed discussion on the implementation of One-Class SVM in Python, including code examples and a sample CSV file containing network flow parameters such as duration, number of packets, and packet sizes. This is a continuation of the article Theoretical Considerations on Artificial Intelligence and Cybersecurity: One-Class SVM for Anomaly Detection in Network Traffic. The authors emphasize the necessity of removing the label column during training, as One-Class SVM is designed to identify anomalous observations based solely on a dataset of normal behavior. The text outlines the key stages of working with the model, including data loading, splitting into training and test sets, scaling, model initialization, and evaluation of results using metrics such as Precision, Recall, and F1-score. It is noted that model evaluation in laboratory conditions may be misleading if only a small number of samples are available. The article also discusses hyperparameter tuning (nu, gamma) and explores potential extensions, including combining One-Class SVM with other algorithms, integration with SIEM systems, and the implementation of real-time streaming data processing. | pol |
| dc.description.abstract | W artykule szczegółowo omówiono implementację One-Class SVM w języku Python wraz z przykładami kodu i przykładowym fragmentem pliku CSV, w którym zapisano parametry dotyczące przepływów sieciowych (takie jak czas trwania, liczba pakietów, rozmiary pakietów). Jest to kontynuuacja artykułu Theoretical Considerations on Artificial Intelligence and Cybersecurity, One-Class SVM for Anomaly Detection in Network Traffic. Autorzy zwracają uwagę na konieczność usunięcia kolumny etykiet (label) podczas treningu, ponieważ One-Class SVM przystosowany jest do identyfikowania nietypowych obserwacji, bazując wyłącznie na zbiorze zachowań normalnych. W tekście opisano podstawowe etapy pracy z modelem: wczytanie danych, podział na zbiór treningowy i testowy, skalowanie, inicjalizację modelu oraz ewaluację wyników z wykorzystaniem miar typu Precision, Recall czy F1-score. Zwrócono uwagę, że ocena jakości modelu w warunkach laboratoryjnych może być myląca, jeśli dysponuje się jedynie niewielką liczbą próbek. Omówiono także zagadnienie dostrajania hiperparametrów (nu, gamma) i opisano możliwe rozszerzenia obejmujące łączenie One-Class SVM z innymi algorytmami, integrację z systemami SIEM czy wprowadzenie przetwarzania strumieniowego w czasie rzeczywistym. | pol |
| dc.identifier.citation | Dydaktyka Informatyki T. 20 (2025), s. 195-206 | |
| dc.identifier.doi | 10.15584/di.2025.20.17 | |
| dc.identifier.eissn | 2543-9847 | |
| dc.identifier.isbn | 978-83-8277-320-0 | |
| dc.identifier.issn | 2083-3156 | |
| dc.identifier.uri | https://repozytorium.ur.edu.pl/handle/item/12329 | |
| dc.language.iso | eng | |
| dc.publisher | Wydawnictwo Uniwersytetu Rzeszowskiego | |
| dc.rights | Attribution-NonCommercial-NoDerivatives 4.0 International | en |
| dc.rights.uri | http://creativecommons.org/licenses/by-nc-nd/4.0/ | |
| dc.subject | Python | |
| dc.subject | artificial intelligence | |
| dc.subject | cybersecurity | |
| dc.subject | One-Class SVM | |
| dc.subject | sztuczna inteligencja | |
| dc.subject | cyberbezpieczeństwo | |
| dc.title | Practical Implementation of Artificial Intelligence in Cybersecurity, One-Class SVM for Anomaly Detection in Network Traffic | |
| dc.title.alternative | Praktyczna implementacja sztucznej inteligencji w cyberbezpieczeństwie, One-Class SVM do wykrywania anomalii w ruchu sieciowym | |
| dc.type | article |