{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,20]],"date-time":"2026-11-20T18:11:43Z","timestamp":1795198303531,"version":"4.10.3"},"reference-count":51,"publisher":"MDPI AG","issue":"11","license":[{"start":{"date-parts":[[2025,10,22]],"date-time":"2025-10-22T00:00:00Z","timestamp":1761091200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"Advanced Technology National Science and Technology Major Project","award":["2024ZD0607600"],"award-info":[{"award-number":["2024ZD0607600"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Entropy"],"abstract":"<jats:p>With the increasing complexity and diversity of network threats, developing high-performance Network Intrusion Detection Systems (NIDSs) has become a critical challenge. A primary obstacle in this domain is the pervasive issue of class imbalance, where the scarcity of minority attack samples and the varying costs of misclassification severely limit the effectiveness of traditional models, often leading to a difficult trade-off between high False Positive Rates (FPRs) and low Recall. To address this challenge, this paper proposes a novel, conditionally symmetric two-stage framework, termed CSCVAE-NID (Conditionally Symmetric Two-Stage CVAE for Network Intrusion Detection). The framework operates in two synergistic stages: Firstly, a Data Augmentation Conditional Variational Autoencoder (DA-CVAE) is introduced to tackle the data imbalance problem at the data level. By conditioning on attack categories, the DA-CVAE generates high-quality and diverse synthetic samples for underrepresented classes, providing a more balanced training dataset. Secondly, the core of our framework, a Cost-Sensitive Multi-Class Classification CVAE (CSMC-CVAE), is proposed. This model innovatively reframes the classification task as a probabilistic distribution matching problem and integrates a cost-sensitive learning strategy at the algorithm level. By incorporating a predefined cost matrix into its loss function, the CSMC-CVAE is compelled to prioritize the correct classification of high-cost, minority attack classes. Comprehensive experiments conducted on the public CICIDS-2017 and UNSW-NB15 datasets demonstrate the superiority of the proposed CSCVAE-NID framework. Compared to several state-of-the-art methods, our approach achieves exceptional performance in both binary and multi-class classification tasks. Notably, the DA-CVAE module is designed to be independent and extensible, allowing the effective data that it generates to support any advanced intrusion detection methodology.<\/jats:p>","DOI":"10.3390\/e27111086","type":"journal-article","created":{"date-parts":[[2025,10,22]],"date-time":"2025-10-22T03:43:23Z","timestamp":1761104603000},"page":"1086","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":4,"title":["CSCVAE-NID: A Conditionally Symmetric Two-Stage CVAE Framework with Cost-Sensitive Learning for Imbalanced Network Intrusion Detection"],"prefix":"10.3390","volume":"27","author":[{"given":"Zhenyu","family":"Wang","sequence":"first","affiliation":[{"name":"College of Computer Science, Beijing University of Technology, Beijing 100124, China"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Xuejun","family":"Yu","sequence":"additional","affiliation":[{"name":"College of Computer Science, Beijing University of Technology, Beijing 100124, China"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2025,10,22]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"29864","DOI":"10.1109\/JIOT.2024.3408634","article-title":"Toward Ever-Evolution Network Threats: A Hierarchical Federated Class-Incremental Learning Approach for Network Intrusion Detection in IIoT","volume":"11","author":"Mao","year":"2024","journal-title":"IEEE Internet Things J."},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"104128","DOI":"10.1016\/j.jnca.2025.104128","article-title":"nNFST: A single-model approach for multiclass novelty detection in network intrusion detection systems","volume":"236","author":"Nguyen","year":"2025","journal-title":"J. Netw. Comput. Appl."},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"111378","DOI":"10.1016\/j.asoc.2024.111378","article-title":"Fusion of linear and non-linear dimensionality reduction techniques for feature reduction in LSTM-based Intrusion Detection System","volume":"154","author":"Thakkar","year":"2024","journal-title":"Appl. Soft Comput."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"107064","DOI":"10.1016\/j.neunet.2024.107064","article-title":"DDP-DAR: Network intrusion detection based on denoising diffusion probabilistic model and dual-attention residual network","volume":"184","author":"Cai","year":"2025","journal-title":"Neural Netw."},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"13863","DOI":"10.1109\/TII.2024.3435532","article-title":"Toward transferable adversarial attacks against autoencoder-based network intrusion detectors","volume":"20","author":"Zhang","year":"2024","journal-title":"IEEE Trans. Ind. Inform."},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"6503","DOI":"10.1109\/TII.2021.3139363","article-title":"Fast anomaly identification based on multiaspect data streams for intelligent intrusion detection toward secure industry 4.0","volume":"18","author":"Qi","year":"2021","journal-title":"IEEE Trans. Ind. Inform."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"1006","DOI":"10.1109\/TII.2022.3164770","article-title":"Dependable intrusion detection system for IoT: A deep transfer learning based approach","volume":"19","author":"Mehedi","year":"2022","journal-title":"IEEE Trans. Ind. Inform."},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"3540","DOI":"10.1109\/TIFS.2020.2991876","article-title":"A method of few-shot network intrusion detection based on meta-learning framework","volume":"15","author":"Xu","year":"2020","journal-title":"IEEE Trans. Inf. Forensics Secur."},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"558","DOI":"10.1016\/j.future.2017.09.056","article-title":"Dendron: Genetic trees driven rule induction for network intrusion detection systems","volume":"79","author":"Papamartzivanos","year":"2018","journal-title":"Future Gener. Comput. Syst."},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Abdulhammed, R., Musafer, H., Alessa, A., Faezipour, M., and Abuzneid, A. (2019). Features dimensionality reduction approaches for machine learning based network intrusion detection. Electronics, 8.","DOI":"10.3390\/electronics8030322"},{"key":"ref_11","first-page":"108","article-title":"Toward generating a new intrusion detection dataset and intrusion traffic characterization","volume":"1","author":"Sharafaldin","year":"2018","journal-title":"ICISSp"},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"61024","DOI":"10.1109\/ACCESS.2021.3074664","article-title":"Intrusion detection system based on fast hierarchical deep convolutional neural network","volume":"9","author":"Teodoro","year":"2021","journal-title":"IEEE Access"},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"3571","DOI":"10.1007\/s11227-020-03410-y","article-title":"Network intrusion detection using multi-architectural modular deep neural network","volume":"77","author":"Atefinia","year":"2021","journal-title":"J. Supercomput."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"3538","DOI":"10.1109\/TIFS.2021.3083422","article-title":"Conditional variational auto-encoder and extreme value theory aided two-stage learning approach for intelligent fine-grained known\/unknown intrusion detection","volume":"16","author":"Yang","year":"2021","journal-title":"IEEE Trans. Inf. Forensics Secur."},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"321","DOI":"10.1613\/jair.953","article-title":"SMOTE: Synthetic minority over-sampling technique","volume":"16","author":"Chawla","year":"2002","journal-title":"J. Artif. Intell. Res."},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Moustafa, N., and Slay, J. (2015, January 10\u201312). UNSW-NB15: A comprehensive data set for network intrusion detection systems (UNSW-NB15 network data set). Proceedings of the 2015 Military Communications and Information Systems Conference (MilCIS), Canberra, Australia.","DOI":"10.1109\/MilCIS.2015.7348942"},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"18","DOI":"10.1080\/19393555.2015.1125974","article-title":"The evaluation of Network Anomaly Detection Systems: Statistical analysis of the UNSW-NB15 data set and the comparison with the KDD99 data set","volume":"25","author":"Moustafa","year":"2016","journal-title":"Inf. Secur. J. Glob. Perspect."},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"481","DOI":"10.1109\/TBDATA.2017.2715166","article-title":"Novel Geometric Area Analysis Technique for Anomaly Detection Using Trapezoidal Area Estimation on Large-Scale Networks","volume":"5","author":"Moustafa","year":"2019","journal-title":"IEEE Trans. Big Data"},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"102767","DOI":"10.1016\/j.jnca.2020.102767","article-title":"Deep learning methods in network intrusion detection: A survey and an objective comparison","volume":"169","author":"Gamage","year":"2020","journal-title":"J. Netw. Comput. Appl."},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"131","DOI":"10.1002\/nem.1925","article-title":"ProTru: A provenance-based trust architecture for wireless sensor networks","volume":"26","author":"Dogan","year":"2016","journal-title":"Int. J. Netw. Manag."},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"43355","DOI":"10.1109\/ACCESS.2020.2976624","article-title":"Security analysis of network anomalies mitigation schemes in IoT networks","volume":"8","author":"Lawal","year":"2020","journal-title":"IEEE Access"},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Li, Y., and Li, J. (2014, January 15\u201317). MultiClassifier: A combination of DPI and ML for application-layer classification in SDN. Proceedings of the 2014 2nd International Conference on Systems and Informatics (ICSAI 2014), Shanghai, China.","DOI":"10.1109\/ICSAI.2014.7009372"},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"4815","DOI":"10.1109\/JIOT.2018.2871719","article-title":"An ensemble intrusion detection technique based on proposed statistical flow features for protecting network traffic of internet of things","volume":"6","author":"Moustafa","year":"2018","journal-title":"IEEE Internet Things J."},{"key":"ref_24","first-page":"433","article-title":"Detecting intrusions in computer network traffic with machine learning approaches","volume":"13","author":"Maniriho","year":"2020","journal-title":"Int. J. Intell. Eng. Syst."},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Tong, X., Tan, X., Chen, L., Yang, J., and Zheng, Q. (2020, January 12\u201314). BFSN: A novel method of encrypted traffic classification based on bidirectional flow sequence network. Proceedings of the 2020 3rd International Conference on Hot Information-Centric Networking (HotICN), Hefei, China.","DOI":"10.1109\/HotICN50779.2020.9350824"},{"key":"ref_26","doi-asserted-by":"crossref","first-page":"9960","DOI":"10.1109\/JIOT.2021.3119055","article-title":"A novel intrusion detection method based on lightweight neural network for internet of things","volume":"9","author":"Zhao","year":"2021","journal-title":"IEEE Internet Things J."},{"key":"ref_27","doi-asserted-by":"crossref","first-page":"4944","DOI":"10.1109\/JIOT.2020.3034156","article-title":"Hybrid deep learning for botnet attack detection in the internet-of-things networks","volume":"8","author":"Popoola","year":"2020","journal-title":"IEEE Internet Things J."},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"148363","DOI":"10.1109\/ACCESS.2019.2946708","article-title":"Analysis of multi-types of flow features based on hybrid neural network for improving network anomaly detection","volume":"7","author":"Ma","year":"2019","journal-title":"IEEE Access"},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"1305","DOI":"10.1109\/TNSM.2022.3229706","article-title":"Arcade: Adversarially regularized convolutional autoencoder for network anomaly detection","volume":"20","author":"Lunardi","year":"2022","journal-title":"IEEE Trans. Netw. Serv. Manag."},{"key":"ref_30","doi-asserted-by":"crossref","first-page":"2454","DOI":"10.1109\/TNNLS.2021.3086137","article-title":"Feature encoding with autoencoders for weakly supervised anomaly detection","volume":"33","author":"Zhou","year":"2021","journal-title":"IEEE Trans. Neural Netw. Learn. Syst."},{"key":"ref_31","first-page":"136","article-title":"Addressing imbalanced data in network intrusion detection: A review and survey","volume":"15","year":"2024","journal-title":"Int. J. Adv. Comput. Sci. Appl."},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"3132","DOI":"10.1109\/TKDE.2025.3549299","article-title":"A survey of imbalanced learning on graphs: Problems, techniques, and future directions","volume":"37","author":"Liu","year":"2025","journal-title":"IEEE Trans. Knowl. Data Eng."},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"2839","DOI":"10.1007\/s00521-020-05130-z","article-title":"CDSMOTE: Class decomposition and synthetic minority class oversampling technique for imbalanced-data classification","volume":"33","author":"Elyan","year":"2021","journal-title":"Neural Comput. Appl."},{"key":"ref_34","doi-asserted-by":"crossref","first-page":"282","DOI":"10.1049\/cps2.12085","article-title":"Oversampling and undersampling for intrusion detection system in the supervisory control and data acquisition IEC 60870-5-104","volume":"9","author":"Arifin","year":"2024","journal-title":"IET Cyber-Phys. Syst. Theory Appl."},{"key":"ref_35","doi-asserted-by":"crossref","first-page":"1262","DOI":"10.1109\/TIFS.2024.3516547","article-title":"Fed-UGI: Federated undersampling learning framework with Gini impurity for imbalanced network intrusion detection","volume":"20","author":"Zheng","year":"2024","journal-title":"IEEE Trans. Inf. Forensics Secur."},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"13","DOI":"10.1016\/j.ins.2021.12.066","article-title":"SVDD-based weighted oversampling technique for imbalanced and overlapped dataset learning","volume":"588","author":"Tao","year":"2022","journal-title":"Inf. Sci."},{"key":"ref_37","doi-asserted-by":"crossref","unstructured":"Tan, X., Su, S., Huang, Z., Guo, X., Zuo, Z., Sun, X., and Li, L. (2019). Wireless sensor networks intrusion detection based on SMOTE and the random forest algorithm. Sensors, 19.","DOI":"10.3390\/s19010203"},{"key":"ref_38","doi-asserted-by":"crossref","unstructured":"Wang, J.H., and Septian, T.W. (2021, January 11\u201314). Combining oversampling with recurrent neural networks for intrusion detection. Proceedings of the International Conference on Database Systems for Advanced Applications, Taipei, Taiwan.","DOI":"10.1007\/978-3-030-73216-5_21"},{"key":"ref_39","doi-asserted-by":"crossref","first-page":"102435","DOI":"10.1016\/j.cose.2021.102435","article-title":"STL-HDL: A new hybrid network intrusion detection system for imbalanced dataset on big data environment","volume":"110","author":"Al","year":"2021","journal-title":"Comput. Secur."},{"key":"ref_40","doi-asserted-by":"crossref","first-page":"114058","DOI":"10.1016\/j.eswa.2020.114058","article-title":"GEP-based classifier for mining imbalanced data","volume":"164","author":"Jedrzejowicz","year":"2021","journal-title":"Expert Syst. Appl."},{"key":"ref_41","doi-asserted-by":"crossref","unstructured":"Luo, Y., Chen, R., Li, C., Yang, D., Tang, K., and Su, J. (2025). An improved binary simulated annealing algorithm and TPE-FL-LightGBM for fast network intrusion detection. Electronics, 14.","DOI":"10.3390\/electronics14020231"},{"key":"ref_42","doi-asserted-by":"crossref","first-page":"137","DOI":"10.1007\/s10462-024-10759-6","article-title":"A survey on imbalanced learning: Latest research, applications and future directions","volume":"57","author":"Chen","year":"2024","journal-title":"Artif. Intell. Rev."},{"key":"ref_43","doi-asserted-by":"crossref","first-page":"4450","DOI":"10.1364\/OL.566608","article-title":"Intrusion detection-embedded chaotic encryption via hybrid modulation for data center interconnects","volume":"50","author":"Zeng","year":"2025","journal-title":"Opt. Lett."},{"key":"ref_44","doi-asserted-by":"crossref","first-page":"108266","DOI":"10.1016\/j.asoc.2021.108266","article-title":"Cost-sensitive matrixized classification learning with information entropy","volume":"116","author":"Wang","year":"2022","journal-title":"Appl. Soft Comput."},{"key":"ref_45","doi-asserted-by":"crossref","first-page":"100122","DOI":"10.1016\/j.iot.2019.100122","article-title":"Cost-sensitive stacked auto-encoders for intrusion detection in the Internet of Things","volume":"14","author":"Telikani","year":"2021","journal-title":"Internet Things"},{"key":"ref_46","unstructured":"Paszke, A., Gross, S., Chintala, S., Chanan, G., Yang, E., DeVito, Z., Lin, Z., Desmaison, A., Antiga, L., and Lerer, A. (2017, January 4\u20139). Automatic differentiation in pytorch. Proceedings of the 31st Conference on Neural Information Processing Systems (NIPS 2017), Long Beach, CA, USA."},{"key":"ref_47","unstructured":"Kingma, D.P., and Ba, J. (2014). Adam: A method for stochastic optimization. arXiv."},{"key":"ref_48","unstructured":"Loshchilov, I., and Hutter, F. (2016). Sgdr: Stochastic gradient descent with warm restarts. arXiv."},{"key":"ref_49","doi-asserted-by":"crossref","first-page":"105669","DOI":"10.1016\/j.engappai.2022.105669","article-title":"Imbalanced tabular data modelization using CTGAN and machine learning to improve IoT Botnet attacks detection","volume":"118","author":"Habibi","year":"2023","journal-title":"Eng. Appl. Artif. Intell."},{"key":"ref_50","doi-asserted-by":"crossref","first-page":"125171","DOI":"10.1016\/j.eswa.2024.125171","article-title":"Novel imbalanced fault diagnosis method based on generative adversarial networks with balancing serial CNN and Transformer (BCTGAN)","volume":"258","author":"Chen","year":"2024","journal-title":"Expert Syst. Appl."},{"key":"ref_51","unstructured":"He, H., Bai, Y., Garcia, E.A., and Li, S. (2008, January 1\u20138). ADASYN: Adaptive synthetic sampling approach for imbalanced learning. Proceedings of the 2008 IEEE International Joint Conference on Neural Networks (IEEE World Congress on Computational Intelligence), Hong Kong, China."}],"container-title":["Entropy"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1099-4300\/27\/11\/1086\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,22]],"date-time":"2025-10-22T03:44:39Z","timestamp":1761104679000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1099-4300\/27\/11\/1086"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,10,22]]},"references-count":51,"journal-issue":{"issue":"11","published-online":{"date-parts":[[2025,11]]}},"alternative-id":["e27111086"],"URL":"https:\/\/doi.org\/10.3390\/e27111086","relation":{},"ISSN":["1099-4300"],"issn-type":[{"value":"1099-4300","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,10,22]]}}}