Comparative evaluation of natural language processing approaches with particle swarm optimized LightGBM for anomaly detection in cloud system logs
Slavisa Djukanovic, Saša Stojanović, Boško Nikolić, Snezana Anetic, Tamara Živković, Miodrag Zivkovic, Vladimir Simic, Nebojsa Bacanin
University of Belgrade · Singidunum University
Key points
From the paper's conclusion- To address these challenges, this research introduces a hybrid framework that integrates natural language processing (NLP) with an optimized LightGBM classifier, tailored for anomaly detection in cloud-generated system logs.
Abstract
Effective log assessment is a cornerstone for ensuring the reliability and smooth functioning of large-scale, cloud-based infrastructures. As these environments continuously grow in scope and intricacy, traditional monitoring approaches often struggle to keep up, leading to unnecessary computational strain and diminished system performance. To address these challenges, this research introduces a hybrid framework that integrates natural language processing (NLP) with an optimized LightGBM classifier, tailored for anomaly detection in cloud-generated system logs. Central to the design is a thorough preprocessing pipeline that filters irrelevant information and minimizes bias, thereby sharpening anomaly detection accuracy. The experimental setup explored multiple NLP-based preprocessing strategies, including TF-IDF, BERT, and Word2Vec implementations (employing spaCy and Gensim). Classification relied on the LightGBM model, whose hyperparameters were refined using a customized particle swarm optimization (PSO) metaheuristic. This modified optimization routine boosted both predictive accuracy and model robustness. Results from the study reveal that the combined system significantly enhanced both the identification and classification of anomalies in cloud logs. The most effective configuration achieved up to 100% accuracy under the evaluated experimental conditions, highlighting the framework's potential to strengthen security within cloud ecosystems. To ensure statistical soundness, extensive comparative evaluations were conducted across all configurations. Additionally, model interpretability was improved through SHapley Additive exPlanations (SHAP), which provided transparent insights into the role of individual features in shaping classification outcomes.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Context-Aware ML/NLP Pipeline for Real-Time Anomaly Detection and Risk Assessment in Cloud API TrafficMachine Learning and Knowledge Extraction · 2026
- LogMeta: A few-shot model-agnostic meta-learning framework for robust and adaptive log anomaly detectionJournal of Systems and Software · 2026
- Fast Unsupervised Anomaly Detection Methods on Software Logs - An Empirical StudyarXiv · 2026
- Integrating NLP and Ensemble Learning into Next-Generation Firewalls for Robust Malware Detection in Edge ComputingSensors · 2026
- A novel multi objective grey wolf optimization fuzzy miner for process discovery: Incorporating robustness and explainability in model evaluationPLoS ONE · 2026
- AI-Driven Anomaly Detection in Cloud-Native Microservices: The Night’s Watch AlgorithmApplied Sciences · 2025