首页 > AI前沿 > Optimal feature selection for firewall log analysis using Machine learning and Hybrid Metaheuristic algorithms

Optimal feature selection for firewall log analysis using Machine learning and Hybrid Metaheuristic algorithms

arXiv机器学习 2026-11-12 11:38 18 阅读 查看原文
用户现在需要把给定的英文新闻正文排版成语义化HTML片段,要符合规则,只输出HTML,不用文档级标签。首先,这段是学术类的正文,有没有需要分小节的?不对,看原文是一个连贯的段落?不对,等下,原文是一整段吗?不对,仔细看,原文是连续的内容,不过先看要求,每个自然段落用p包裹,长文用h2/h3划分小节?不对,这段原文是一个自然段?不对,再读:原文是一个连贯的学术内容,那首先,有没有需要小节的?哦,不对,再看内容,开头是背景,然后讲方法改进,然后结果,最后结论?不对,不过用户要求保留所有信息,不能增删。哦,不对,原文是一段吗?等下看用户给的正文:是一整段?不对,等下数:从Firewall log classification开始到future work,是一整段?不对,不对,再仔细看:哦,不,其实可以不用硬分h2/h3?不对,规则说长文用h2/h3划分小节,那这段其实可以?不对,或者如果不需要的话?不对,再看,原文的内容:首先第一部分是研究背景和前期问题,然后是改进的方法,然后是实验结果,最后是结论。那可以分几个小节?等下,但是不能增删内容,所以标题?哦不对,规则是h2/h3划分小节,但是不能加内容啊?哦,不对,不对,用户说保留原文所有信息,不得增删改内容。哦,对,那不能加标题的文字啊?那怎么办?哦,不对,原文本身是一段?那是不是整个用p?不对,等下,有没有列表、引用、代码?这里面没有,那重要句子可以用strong。比如,开头的重要的?还有QBSO-FS那个?还有结果部分的重要数据? 等下,先理清楚: 首先,原文是一个完整的段落吗?不,等下,读原文: "Firewall log classification is important to monitor network traffic. Machine learning classifiers using network-related features have shown good results for this task, but high-dimensional features slow down classification. In this paper, we apply feature selection using bee swarm optimization with Q-learning-based local search (QBSO-FS) to the UCI Internet Firewall Data Set, together with random forest (RF), k-nearest neighbor (KNN), and Bernoulli naïve Bayes (Bernoulli NB) classifiers. The first version of this preprint selected and evaluated feature subsets on the same 5-fold cross-validation of the full data set, which contains 12.8\% exact duplicates; the reported scores are therefore optimistically biased. In this extended version, we re-evaluate the method with a leakage-free protocol: the data are split into training, validation, and test sets, features are selected using the validation set only, and accuracy and macro-averaged scores are measured once on the untouched test set, for both the raw data and a deduplicated, preprocessed version. On a single stratified split, QBSO-FS selects 5--7 features. The selected subsets clearly improve Macro-F1 over all features for KNN on both data sets and for RF on the deduplicated data (by 8--19 percentage points). For RF on the raw data and for Bernoulli NB, the differences (0.2--1.5 percentage points) may not hold for a different split. RF with 7 selected features reaches 99.90\% accuracy and 94.88\% Macro-F1 on the deduplicated data. On the same split, this exceeds our re-implementations of the deep neural network configurations of previous studies and the feature subset selected by particle swarm optimization in one of them, while the run time saved on this low-dimensional data set is small. These results suggest that the method can support automatic firewall log analysis, while evaluation over multiple splits remains future work." 哦,其实这是一整段?不对,但是规则说长文用h2/h3划分小节,但是不能加内容,所以是不是不需要硬加标题?因为加标题就是增加内容了,违反规则4。哦对,规则4说保留原文所有信息,不得增删改内容,所以不能自己加标题文字,那如果原文没有分小节的话,就用p?不对,等下,有没有可能我理解错?哦,不对,用户说“长文用

/

划分小节”,是指如果原文有可以划分的部分的话,但是不能加原文没有的内容,那原文是连贯的,所以是不是整个用一个p?然后把重要的句子加strong?比如,哪部分是重要的?比如研究方法的那句,还有结果的那句,还有结论的那句? 等下,再想:比如,开头的“Firewall log classification is important to monitor network traffic.”是不是可以加strong?然后“we apply feature selection using bee swarm optimization with Q-learning-based local search (QBSO-FS) to the UCI Internet Firewall Data Set, together with random forest (RF), k-nearest neighbor (KNN), and Bernoulli naïve Bayes (Bernoulli NB) classifiers.”这句是核心方法,可以加strong?然后“we re-evaluate the method with a leakage-free protocol”这里?然后结果部分的“The selected subsets clearly improve Macro-F1 over all features for KNN on both data sets and for RF on the deduplicated data (by 8--19 percentage points).”还有“RF with 7 selected features reaches 99.90\% accuracy and 94.88\% Macro-F1 on the deduplicated data.”还有最后“These results suggest that the method can support automatic firewall log analysis, while evaluation over multiple splits remains future work.”这些是重要的,可以加strong? 不对,但是要注意不能改内容,只是加strong标签包裹重要部分。然后,有没有列表、引用、代码?这里没有,所以不用。那结构就是一个

包裹整个段落?不对,等下,会不会我漏了?哦,不对,原文是不是可以分成几个部分?不对,原文是连贯的,没有换行的分段,所以是自然段,用一个p?不对,等下,再仔细看用户给的正文,是不是整个是一段?对,用户给的正文是连续的一段,没有换行的分段。那现在排版的话: 首先,没有需要h2/h3的,因为没有原文的分节,不能自己加标题,所以用p包裹,然后把重要的句子用strong包起来。 等下,那具体的:

Firewall log classification is important to monitor network traffic. Machine learning classifiers using network-related features have shown good results for this task, but high-dimensional features slow down classification. In this paper, we apply feature selection using bee swarm optimization with Q-learning-based local search (QBSO-FS) to the UCI Internet Firewall Data Set, together with random forest (RF), k-nearest neighbor (KNN), and Bernoulli naïve Bayes (Bernoulli NB) classifiers. The first version of this preprint selected and evaluated feature subsets on the same 5-fold cross-validation of the full data set, which contains 12.8\% exact duplicates; the reported scores are therefore optimistically biased. In this extended version, we re-evaluate the method with a leakage-free protocol: the data are split into training, validation, and test sets, features are selected using the validation set only, and accuracy and macro-averaged scores are measured once on the untouched test set, for both the raw data and a deduplicated, preprocessed version. On a single stratified split, QBSO-FS selects 5--7 features. The selected subsets clearly improve Macro-F1 over all features for KNN on both data sets and for RF on the deduplicated data (by 8--19 percentage points). For RF on the raw data and for Bernoulli NB, the differences (0.2--1.5 percentage points) may not hold for a different split. RF with 7 selected features reaches 99.90\% accuracy and 94.88\% Macro-F1 on the deduplicated data. On the same split, this exceeds our re-implementations of the deep neural network configurations of previous studies and the feature subset selected by particle swarm optimization in one of them, while the run time saved on this low-dimensional data set is small. These results suggest that the method can support automatic firewall log analysis, while evaluation over multiple splits remains future work.

等下,但是有没有问题?比如,那个12.8\%的反斜杠,用户原文里有,所以要保留对吧?对,规则说不得增删改内容,所以保留那个\。还有5--7,