[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-290956-105":59,"doc-detail-290956-en":131,"doc-similar-290956":164},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","machine-learning-algorithms-for-raw-and-unbalanced-intrusion-detection-data-in-a-multi-class-classification-problem","Machine Learning Algorithms for Raw and Unbalanced Intrusion Detection Data in a Multi-Class Classification Problem","","Various machine learning algorithms have been applied to network intrusion classification tasks, including binary and multi-class settings. Despite many studies on unbalanced intrusion datasets, common practices often merge classes or keep only dominant ones, yet accuracy does not consistently decline as class counts increase. This work evaluates multiclass performance on highly imbalanced raw data using CIC-IDS2017 and CSE-CIC-IDS2018, comparing models such as Logistic Regression, Random Forest, Decision Trees, CNNs, and Artificial Neural Networks, with explainable AI for interpretation. Results show CART decision trees achieve the best 28-class macro F1-score (0.96878).",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/machine-learning-algorithms-for-raw-and-unbalanced-intrusion-detection-data-in-a-multi-class-classification-problem/290956/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/machine-learning-algorithms-for-raw-and-unbalanced-intrusion-detection-data-in-a-multi-class-classification-problem/290956.png","ImageObject",300,407,{"name":92,"@type":93},"Quinn","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-16","2026-09-17",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",13,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"Why is class imbalance important in network intrusion detection research?","Question",{"text":113,"@type":114},"Class imbalance reduces model effectiveness and can cause interpretation and generalization issues that lead to biased or inaccurate results.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"What datasets are used to evaluate multiclass intrusion detection performance?",{"text":118,"@type":114},"The study evaluates highly imbalanced raw data using CIC-IDS2017 and CSE-CIC-IDS2018.",{"name":120,"@type":111,"acceptedAnswer":121},"Which model performed best on the 28-class classification task?",{"text":122,"@type":114},"Decision trees using the CART algorithm performed best, achieving an average macro F1-score of 0.96878.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},290956,1790081889,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":140,"language":141,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":67,"update_tm":145,"read_time":146,"preview_page_count":19,"preview_urls":147},962075114765,"https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd","applied sciences  \nArticle  \nMachine Learning Algorithms for Raw and Unbalanced Intrusion Detection Data in a Multi-Class Classification Problem  \nMantas Bacevicius and Agne Paulauskaite-Taraseviciene *  \nCitation: Bacevicius, M.;  \nPaulauskaite-Taraseviciene, A. Machine Learning Algorithms for Raw and Unbalanced Intrusion Detection Data in a Multi-Class Classiﬁcation Problem. Appl. Sci. 2023, 13, 7328. [https://doi.org/](https://doi.org/)[ ](https://doi.org/)[10.3390/app13127328](10.3390/app13127328)  \nAcademic Editors: Peter R. J. Trim and Yang-Im Lee  \nReceived: 29 May 2023  \nRevised: 15 June 2023  \nAccepted: 19 June 2023  \nPublished: 20 June 2023  \nCopyright: © 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license ([https://](https://)[ ](https://)[creativecommons.org/licenses/by/](creativecommons.org/licenses/by/)[ ](creativecommons.org/licenses/by/)[4.0/](4.0/)) .  \nFaculty of Informatics, Kaunas University of Technology, Studentu 50, 51368 Kaunas, Lithuania; [mantas.bacevicius@ktu.edu](mantas.bacevicius@ktu.edu)  \n* Correspondence: [agne.paulauskaite-taraseviciene@ktu.lt](agne.paulauskaite-taraseviciene@ktu.lt)  \nAbstract: Various machine learning algorithms have been applied to network intrusion classiﬁcation problems, including both binary and multi-class classiﬁcations. Despite the existence of numerous studies involving unbalanced network intrusion datasets, such as CIC-IDS2017, a prevalent approach is to address the issue by either merging the classes to optimize their numbers or retaining only the most dominant ones. However, there is no consistent trend showing that accuracy always decreases asthe number of classes increases. Furthermore, it is essential for cybersecurity practitioners to recognize the speciﬁc type of attack and comprehend the causal factors that contribute to the resulting outcomes. This study focuses on tackling the challenges associated with evaluating the performance of multiclass classiﬁcation for network intrusions using highly imbalanced raw data that encompasses the CIC-IDS2017 and CSE-CIC-IDS2018 datasets. The research concentrates on investigating diverse machine learning (ML) models, including Logistic Regression, Random Forest, Decision Trees, CNNs, and Artiﬁcial Neural Networks. Additionally, it explores the utilization of explainable AI (XAI) methods to interpret the obtained results. The results obtained indicated that decision trees using the CART algorithm performed best on the 28-class classiﬁcation task, with an average macro F1-score of 0 .96878.  \nKeywords: intrusion; machine learning; XAI; imbalanced dataset; multi-class classiﬁcation  \n1. Introduction  \nIntrusion Detection Systems (IDS) play a key role in strengthening organizational security by providing an additional layer of defense to detect and respond in time to potential threats that may have bypassed preventive measures. These systems can detect a wide range of threats, including malware, phishing attacks, and other types of cyberattacks, that may be missed by more traditional security solutions [1] . As digital networks become more complex and interconnected, the potential for vulnerabilities and weaknesses in the system increases, making it more difﬁcult to identify and prevent all potential threats. IDSs can help to address this problem by providing continuous monitoring and analysis of network trafﬁc, helping to identify potential threats before they can cause signiﬁcant damage, but the development of a reliable and effective system may still be a challenging task.  \nIDSs must be designed to identify and respond to a wide range of cyber threats, including new and emerging attack techniques and to process massive amounts of network trafﬁc data in real time, which can be challenging in terms of both computational resources and data processing speed [2] . This requires careful opti","cbCaic8JiJxap11G","https://ap.wps.com/l/cbCaic8JiJxap11G","pdf",7581290,21,"English","# Introduction\n## Intrusion detection systems and their role\n## Challenges of class imbalance\n## Machine learning approaches and the need for evaluation","[{\"question\":\"Why is class imbalance important in network intrusion detection research?\",\"answer\":\"Class imbalance reduces model effectiveness and can cause interpretation and generalization issues that lead to biased or inaccurate results.\"},{\"question\":\"What datasets are used to evaluate multiclass intrusion detection performance?\",\"answer\":\"The study evaluates highly imbalanced raw data using CIC-IDS2017 and CSE-CIC-IDS2018.\"},{\"question\":\"Which model performed best on the 28-class classification task?\",\"answer\":\"Decision trees using the CART algorithm performed best, achieving an average macro F1-score of 0.96878.\"}]","Machine Learning Algorithms for Raw and Unbalanced Intrusion Detection Data in a Multi-Class Classification Problem | PDF",1789643034,53,[148,152,156,160],{"page_no":8,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/6262b8a0da241a69be83c151ae7b4e7e.webp",983,1390,{"page_no":14,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/6ab6e09fd02111578c372c475071320c.webp",982,1388,{"page_no":81,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/8eb25878d6836acfb2a1038bca1f00b4.webp",981,1387,{"page_no":19,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/38a1bfd45a5bb35176c3ec934233e419.webp",980,1385,{"list":165,"token":66},[166,173,180,186,193,200,207,214,221,227],{"doc_id":167,"doc_title":168,"file_type":138,"home_preview_img_url":169,"slug":170,"view_count":171,"category_name":40,"create_tm":172},121144,"Machine Learning in Network Intrusion Detection - A Cross-Dataset Generalization Study","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229835401008/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796230139&Signature=CHD1J2IdDFleMSVpyE47nEYxTYw%3D","machine-learning-in-network-intrusion-detection-a-cross-dataset-generalization-study",43,1785734066,{"doc_id":174,"doc_title":175,"file_type":138,"home_preview_img_url":176,"slug":177,"view_count":178,"category_name":40,"create_tm":179},124788,"The Investigative Study on the Performance Analysis of SMOTE Employed Machine Learning Classifier Models to DDoS Attack Detection - Analytical Research","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229838371827/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796230139&Signature=tF6j9FLrqs9HV2xJGNUXHHvCDJI%3D","the-investigative-study-on-the-performance-analysis-of-smote-employed-machine-learning-classifier-models-to-ddos-attack-detection-analytical-research",29,1785894665,{"doc_id":181,"doc_title":182,"file_type":138,"home_preview_img_url":183,"slug":184,"view_count":178,"category_name":40,"create_tm":185},118870,"Impact of Data Balancing and Feature Selection on Machine Learning-based Network Intrusion Detection - research abstract","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229834987419/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796230139&Signature=O1WvWDSd8zEunGzy%2FGIMZ%2F6k7gI%3D","impact-of-data-balancing-and-feature-selection-on-machine-learning-based-network-intrusion-detection-research-abstract",1785720708,{"doc_id":187,"doc_title":188,"file_type":138,"home_preview_img_url":189,"slug":190,"view_count":191,"category_name":40,"create_tm":192},127248,"IoT intrusion detection system based on machine learning and deep learning - research article","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229839541844/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796230139&Signature=XDHezRqrM%2FUPcfgfsm5HDsFt12c%3D","iot-intrusion-detection-system-based-on-machine-learning-and-deep-learning-research-article",27,1785937728,{"doc_id":194,"doc_title":195,"file_type":138,"home_preview_img_url":196,"slug":197,"view_count":198,"category_name":40,"create_tm":199},118220,"Web Attack Intrusion Detection System Using Machine Learning Techniques - Research paper","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229834601221/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796230139&Signature=%2FVn99ZDtj1tTmIo5cdnHE9uxpp8%3D","web-attack-intrusion-detection-system-using-machine-learning-techniques-research-paper",26,1785682350,{"doc_id":201,"doc_title":202,"file_type":138,"home_preview_img_url":203,"slug":204,"view_count":205,"category_name":40,"create_tm":206},127734,"Rapid Forecasting of Cyber Events Using Machine Learning-Enabled Features","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229839579541/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796230139&Signature=vuO7WAjWWh%2FHRI7y2z%2Bc3vhpY3U%3D","rapid-forecasting-of-cyber-events-using-machine-learning-enabled-features",25,1785941321,{"doc_id":208,"doc_title":209,"file_type":138,"home_preview_img_url":210,"slug":211,"view_count":212,"category_name":40,"create_tm":213},117481,"Enhanced Diabetes Detection using Machine Learning and Deep Learning Techniques","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229834557127/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796230139&Signature=49ik4YiWVSJhARSmH8amhpyg7j0%3D","enhanced-diabetes-detection-using-machine-learning-and-deep-learning-techniques",33,1785676100,{"doc_id":215,"doc_title":216,"file_type":138,"home_preview_img_url":217,"slug":218,"view_count":219,"category_name":40,"create_tm":220},291187,"Machine learning to improve the performance of anomalybased network intrusion detection in big data","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229903756686/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796230139&Signature=PscaX8zbazm2uvR7bSNGT5uKgKU%3D","machine-learning-to-improve-the-performance-of-anomalybased-network-intrusion-detection-in-big-data",16,1789643626,{"doc_id":222,"doc_title":223,"file_type":138,"home_preview_img_url":224,"slug":225,"view_count":140,"category_name":40,"create_tm":226},127363,"Enhancing Intrusion Detection Systems in Cloud Computing Environments - A Hybrid Machine Learning Approach","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229839554075/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796230139&Signature=w11e12pnEISnrlDzWSo6urDIEps%3D","enhancing-intrusion-detection-systems-in-cloud-computing-environments-a-hybrid-machine-learning-approach",1785938513,{"doc_id":228,"doc_title":229,"file_type":138,"home_preview_img_url":230,"slug":231,"view_count":178,"category_name":40,"create_tm":232},125363,"MACHINE LEARNING FOR NETWORK ANOMALY DETECTION - Thesis Master of Science","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229838434788/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796230139&Signature=po4uvDivp8W64Ybk5Wbva60xli8%3D","machine-learning-for-network-anomaly-detection-master-of-science-thesis",1785898426]