Frequency Encoding of High Cardinality Categorical Features to Detect SPAM Botnet Activity

Network attacks are diverse, with botnets being among the most dangerous. SPAM is a common botnet threat, making botnet detection a critical focus in classifying botnet and non-botnet network traffic. Since most detection models require numerical input, categorical features must be transformed. This paper optimizes the preprocessing phase by employing label and frequency encoding to enhance spam botnet detection. A stacking Decision Tree model is proposed, where the first tree identifies botnet and non-botnet traffic, and the second distinguishes spam and non-spam botnets. Results show that the scenario using label and frequency encoding achieved superior performance, with a macro average exceeding 99.7% and a weighted average exceeding 99.9% for precision, recall, and F1-score.

Authors

Institutions

Publication Details

Published
2025-02-27
DOI
https://doi.org/10.1109/isacc65211.2025.10969275
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Frequency Encoding of High Cardinality Categorical Features to Detect SPAM Botnet Activity

Tohari Ahmad, Muhammad Aidiel Rachman Putra, Daffa Muhamad Azhar, Adifa Widyadhani Chanda D’Layla
Network Security and Intrusion Detection
article

Frequency Encoding of High Cardinality Categorical Features to Detect SPAM Botnet Activity

Tohari Ahmad, Muhammad Aidiel Rachman Putra, Daffa Muhamad Azhar, Adifa Widyadhani Chanda D’Layla
article en

Abstract

Network attacks are diverse, with botnets being among the most dangerous. SPAM is a common botnet threat, making botnet detection a critical focus in classifying botnet and non-botnet network traffic. Since most detection models require numerical input, categorical features must be transformed. This paper optimizes the preprocessing phase by employing label and frequency encoding to enhance spam botnet detection. A stacking Decision Tree model is proposed, where the first tree identifies botnet and non-botnet traffic, and the second distinguishes spam and non-spam botnets. Results show that the scenario using label and frequency encoding achieved superior performance, with a macro average exceeding 99.7% and a weighted average exceeding 99.9% for precision, recall, and F1-score.

Sepuluh Nopember Institute of Technology (ID)
Openalex Percentile: Top 92%
Network Security and Intrusion Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.