# Optimized intrusion detection using particle swarm optimization and neural networks in simulated and physical network environments

**Authors:** Vaishnavi Ganesh, SV Deshmukh

PMC · DOI: 10.1016/j.mex.2026.103824 · MethodsX · 2026-02-17

## TL;DR

This paper introduces a framework for intrusion detection using optimized machine learning, combining virtual and physical network data with Particle Swarm Optimization to improve detection accuracy.

## Contribution

A novel intrusion detection framework using PSO-optimized neural networks in both simulated and physical network environments.

## Key findings

- Packet-level datasets were generated from virtual and physical network setups.
- PSO reduced feature redundancy and improved classification efficiency.
- PSO-enhanced neural models showed superior reliability and low false alerts.

## Abstract

This method article presents a reproducible framework for constructing and evaluating an intrusion detection system using optimized machine learning workflows. Network traffic was collected by implementing two independently controlled setups: a software-based network model and a small-scale real hardware network, with packet traces recorded using Wireshark. These traces were merged with widely used reference datasets to ensure coverage of diverse attack behaviors. Feature dimensionality was reduced using Particle Swarm Optimization, enabling efficient learning while limiting redundant network attributes. The refined feature sets were subsequently used to train multiple classification models, including tree-based, distance-based, and neural learning approaches. Experimental evaluation shows that the neural model trained on PSO-selected features delivers the most stable detection behavior, combining strong classification performance with a consistently low false alert rate, thereby validating the proposed method for intrusion analysis studies.

• Generation of packet-level datasets from independently built virtual and physical network environments

• Optimization-driven feature selection using Particle Swarm Optimization to reduce redundancy

• Cross-model evaluation of optimized classifiers, demonstrating superior reliability of the PSO-enhanced neural approach

Image, graphical abstract

## Full-text entities

- **Diseases:** IPs (OMIM:613661), IDS (MESH:C537310)
- **Chemicals:** IP (MESH:C041508)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12950412/full.md

## Figures

12 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12950412/full.md

## References

23 references — full list in the complete paper: https://tomesphere.com/paper/PMC12950412/full.md

---
Source: https://tomesphere.com/paper/PMC12950412