This document proposes a new approach for network intrusion detection that uses machine learning and deep learning techniques. Specifically, it uses a 1D convolutional neural network (CNN) for feature extraction from network traffic data, and a support vector machine (SVM) classifier optimized with particle swarm optimization (PSO) for attack classification. The proposed approach is evaluated on the widely-used NSL-KDD network traffic dataset, which contains labeled examples of normal traffic and different types of network attacks. The CNN is used to extract features from the dataset, which are then classified with the PSO-optimized SVM to detect intrusions and different attack types. The approach aims to better identify stealthy attacks that may blend in with normal traffic.