This paper proposes a method for improving network security by introducing an Intrusion Detection System (IDS) framework between end devices. It considers big data challenges and the difficulty of updating databases to uncover new threats to firewalls and detection systems. The proposed framework introduces a supervised network using CNN and the UNSW-NB15 dataset. Recursive Feature Elimination (RFE) and Extreme Gradient Boosting ( XGB)wereused to save time and resources. The Synthetic Minority Oversampling Technique (SMOTE) and Bayesian Gaussian Mixture Model (BGMM) reduce bias toward the majority class of the dataset. The results show that this model performs better than other methods, with 98.80% accuracy for binary classification and 96.49% for classification into multiple groups.