1. Introduction
The rapid growth of the Internet of Things (IoT) has increased the heterogeneity, scale, and vulnerability of cyber-physical communication environments. One important enabler of this expansion is enhanced machine-type communication (eMTC), which supports the wide-area connectivity of large populations of low-power IoT devices [
1]. In such environments, an Intrusion Detection System (IDS) is expected not only to recognize known malicious behavior, but also to retain diagnostic reliability when confronted with new devices, new traffic patterns, and previously unseen attacks. Recent work on IoT device identification and attack detection has reported strong classification performance using deep learning, hybrid Convolutional Neural Network (CNN) models, Explainable Artificial Intelligence (XAI), autoencoder-based models, and lightweight integrated frameworks [
2,
3,
4,
5,
6]. Even so, most published studies still treat preprocessing as a brief preparatory stage rather than as a first-class scientific protocol. This paper challenges that practice by arguing that trustworthy IoT security evaluation depends as much on governed preprocessing as on downstream model design. That omission has direct scientific consequences. When training, validation, and test data are partitioned without strict device awareness, device signatures can leak across splits and inflate downstream performance. When feature selection is performed before split finalization, predictor rankings can inherit information from evaluation partitions. When open-set assumptions are ignored, high closed-set accuracy can conceal fragile behavior on genuinely unseen threats. Prior open-set intrusion recognition research has already shown that closed-set evaluation can overstate operational capability when unknown attack classes appear at inference time [
7]. The central premise of this manuscript is therefore simple: if the data substrate is not governed rigorously, then the reported behavior of the detector cannot be interpreted rigorously either.
Against that background, this study proposes a governed preprocessing framework in which device-disjoint split construction, holdout feasibility analysis, flow-signature leakage auditing, shared-safe feature selection, and hard scientific gates are treated as primary research objects rather than hidden implementation details. The framework is instantiated on the Canadian Institute for Cybersecurity-IoT Device Identification and Anomaly Detection (CICIoT-DIAD) 2024 dataset, enriched with Organizationally Unique Identifier (OUI)-based vendor metadata, and evaluated on a completed accepted run containing 35,672,407 records distributed across 180 files [
3]. The novelty of the work lies not in presenting another classifier, but in formalizing an evidence-bearing preprocessing protocol that can support later open-set, multi-head IoT learning under materially stronger integrity conditions.
The contribution is therefore methodological rather than classifier-centric. Instead of claiming a new detection architecture, the study establishes a reproducible foundation for later multi-head learning by ensuring that downstream experiments inherit trustworthy partitions, transparent metric gates, and verifiable integrity artifacts. In practical terms, this means that the accepted decision can be reconstructed from emitted protocol files, audit summaries, metric reports, and proof artifacts rather than from narrative description alone. This framing aligns with broader calls for reproducible and auditable security machine learning, including recent work that formalizes benchmarking and reproducibility checks for threat detection pipelines [
8].
Before introducing the formal methodology, it is useful to state this manuscript’s principal contributions explicitly. The following items summarize the technical claims supported by the framework design and by the accepted run:
- i.
An end-to-end scientific integrity framework was developed to treat preprocessing as an auditable research object for open-set Internet of Things intrusion-detection evaluation.
- ii.
A taxonomy-locking procedure was implemented to fix 28 canonical classes, eight semantic attack families, and five policy labels before split construction, feature selection, and audit reporting.
- iii.
A device-disjoint, vendor-aware split-governance protocol was introduced with feasibility-aware zero-day routing and an explicitly reported row-level fallback when strict device-level holdout was infeasible.
- iv.
A quantified leakage-control layer was developed using device-overlap auditing, flow-signature Jaccard analysis, device-feature dependency control, fingerprint-leakage scoring, train-only preprocessing, and hard scientific gates.
- v.
A shared-safe feature-selection procedure retained 12 compact protocol-level predictors as an integrity-approved representation, while avoiding any claim that the subset was universally optimal for downstream classifier performance.
- vi.
A diagnostic and reproducibility layer was introduced through artifact verification, baseline split-protocol comparison, metric reports, retained-feature manifests, diagnostic contracts, and figure registries, thereby making the accepted preprocessing decision inspectable and reusable for future classifier-level experiments.
2. Related Work
Recent Internet of Things security research has achieved strong progress in device identification, anomaly detection, and attack classification, yet a critical reading of the field reveals a persistent architecture-performance bias. Much of the literature has become highly effective at designing powerful predictive models, but relatively less attention has been given to preprocessing governance, leakage auditing, and the scientific validity of evaluation protocols. This imbalance is especially consequential in Internet of Things corpora, where device-level and temporal correlation can cause conventional random splitting or standard cross-validation to overestimate generalization by allowing behaviorally similar traffic from the same physical device to appear across multiple partitions. For that reason, the present review does not treat prior studies as isolated reports of model accuracy. Instead, it examines them as parts of a broader methodological landscape and asks whether they establish trustworthy experimental conditions in addition to strong predictive performance.
A first major strand of the literature is defined by model-centric architectural innovation. Rabbani et al. [
3] proposed a lightweight integrated framework for simultaneous device identification and anomaly detection using packet-based and flow-based features, thereby demonstrating the value of joint behavioral descriptors for device and threat analysis. Building on this direction, Jain et al. [
5] introduced a hybrid Convolutional Neural Network and Extreme Gradient Boosting architecture with SHapley Additive exPlanations-based interpretability, reporting strong performance on the CIC IoT2024-DIAD dataset. Hossain [
6] likewise evaluated a one-dimensional Convolutional Neural Network, Long Short-Term Memory, a Recurrent Neural Network, and hybrid variants for scalable Internet of Things intrusion detection, again emphasizing downstream detection performance. Collectively, these studies establish strong baselines for predictive modeling and demonstrate that the field has matured considerably in terms of classifier design. However, their common limitation is that preprocessing remains subordinate to the model itself. Device-disjoint partitioning, leakage auditing, and open-set preprocessing realism are not treated as primary scientific contributions. As a result, high reported performance may still be partially supported by favorable data-handling conditions rather than by robust security intelligence.
A second line of work begins to engage more directly with the credibility of data handling. AlFuraih et al. [
4] compared leakage-prone and leakage-aware Random Forest ranking strategies on the CIC IoT-DIAD 2024 dataset and showed that train-only ranking yields more defensible multi-class results. This was an important methodological advance because it explicitly recognized that feature selection can inherit information from validation or test data when performed before strict partition control. In other words, the study moved beyond pure model competition and toward preprocessing awareness. Even so, the surrounding pipeline remained largely conventional, relying on chunk-wise standardization, top-k filtering, and standard split logic. The unresolved gap is therefore not the absence of leakage awareness, but the absence of a broader protocol that integrates leakage-aware feature selection with device-disjoint governance, feasibility-aware open-set holdout, and auditable acceptance logic. Without that broader integration, the literature still lacks a complete defense against evaluation bias in Internet of Things security experiments.
A third strand of the literature approaches the problem through reproducibility and benchmarking discipline. Shaikhanova et al. [
8] proposed a reproducible machine-learning framework for Internet of Things threat detection and benchmarking, emphasizing transparent configuration, timing, and benchmarking outputs. Ahmed et al. [
9] similarly argued for leakage-free experimental design in resource-efficient Distributed Denial of Service studies, showing that protocol construction itself can materially affect the credibility of reported results. These works are important because they shift attention from raw predictive performance to the conditions under which performance is measured. However, their central concern remains benchmarking discipline rather than preprocessing itself. In effect, they strengthen transparency around experiments, but they do not yet formalize preprocessing as the core scientific object. The gap that remains is that preprocessing is still treated as a support layer for evaluation rather than as an evidence-bearing protocol whose own integrity must be demonstrated and audited.
The need for that shift becomes even more pressing when the literature is viewed through the lens of open-set realism. Cruz et al. [
10] showed that closed-set intrusion recognition can overstate operational readiness when previously unseen classes appear at inference time and therefore argued for explicit open-set treatment in fine-grained attack categorization. This contribution is foundational because it reframed intrusion detection as a task that must distinguish not only among known classes, but also between known and unknown behavior. That insight remains highly relevant to modern Internet of Things corpora, where previously unseen attack manifestations and device behaviors are operationally plausible. At the same time, practical open-set deployment on large-scale Internet of Things datasets introduces additional challenges, including threshold calibration, heterogeneous class density, and the possibility that ideal device-level holdout may be infeasible for certain target classes. The literature therefore provides the conceptual rationale for open-set evaluation, but it still lacks a preprocessing protocol that transparently manages holdout feasibility while preserving zero contamination through audited fallback logic. In operational terms, this gap means that a model reported as highly accurate in the laboratory may fail when deployed on previously unseen devices, vendors, or traffic regimes, even when those devices belong to familiar functional classes.
A related body of work extends the discussion into heterogeneous, decentralized, and scalable Internet of Things environments. Tajgardan et al. [
11] investigated unsupervised federated learning for anomaly detection in heterogeneous Internet of Things settings and emphasized shared-feature reasoning under feature heterogeneity. Moghaddam et al. [
12] evaluated an Evo-Transformer-LSTM model across several Canadian Institute for Cybersecurity benchmarks, reinforcing the field’s continuing preference for high-capacity architectures and cross-dataset validation. Mgungile and Tonkal [
13], together with Fraihat et al. [
14], focused on scalable analytics and feature optimization for Internet of Things and Industrial Internet of Things detection tasks, thereby addressing efficiency and large-scale deployment concerns. These studies are valuable because they extend the field beyond single-model experimentation and reflect the real-world demand for scalable and adaptive security intelligence. Nevertheless, their preprocessing pipelines remain comparatively standard. The specific gap they leave unresolved is that scaling, federation, and feature optimization are not accompanied by a governed protocol that explicitly audits device confounding, open-set routing integrity, and leakage-safe partition construction.
Taken together, the literature reveals a consistent pattern. Prior studies have made substantial progress in classifier design, interpretability, scalability, feature ranking, and reproducibility-oriented benchmarking. What remains missing is a unified preprocessing framework that integrates these concerns into a single scientific protocol. More specifically, the current body of work still lacks a preprocessing system that simultaneously enforces device-disjoint partitioning, feasibility-aware open-set routing, quantitative leakage auditing, train-only transformation, and explicit quantitative decision gates backed by reusable artifacts. This collective gap defines the central novelty of the present study. Rather than proposing another model-centric detection pipeline, this work formalizes preprocessing itself as a governed, auditable, and evidence-bearing scientific contribution.
Table 1 summarizes representative prior work and situates the proposed framework within this methodological landscape. By presenting the reviewed studies side by side, the table makes the collective research gap explicit and prepares the ground for the scientific integrity framework developed in the next section.
As
Table 1 makes clear, the gap is not the absence of predictive models. The more consequential gap is the absence of a single preprocessing protocol that simultaneously enforces device-disjoint partitioning, feasibility-aware open-set routing, quantitative leakage auditing, train-only transformation, and explicit decision gates. The present study addresses that gap by treating these elements as one connected integrity framework rather than as isolated implementation choices.
3. Dataset, Taxonomy, and Problem Formulation
3.1. Dataset Composition and OUI Enrichment
The governed pipeline operates on the CICIoT-DIAD 2024 raw Parquet directory together with an Institute of Electrical and Electronics Engineers (IEEE) Organizationally Unique Identifier (OUI) vendor map. The scan-level artifact summary records 180 Parquet files, 35,672,407 rows from metadata, 163 profiled devices, and 253,048 rows for which device identity is unknown at the grouped split stage. The OUI lookup enriches device addresses with vendor identity, thereby enabling vendor-aware balancing, vendor-overlap risk estimation, and more explicit confounding diagnostics. This enrichment is useful, but it is not treated as infallible. Randomized, missing, or ambiguously registered prefixes remain unresolved, and those cases are carried forward transparently rather than silently forced into unreliable vendor assignments.
Table 2 provides a compact summary of the accepted run’s dataset scale and protocol configuration. It serves as the reference point for the split-governance and open-set analyses developed later in the manuscript.
3.2. Canonical Class, Family, and Policy Taxonomy
A preprocessing framework can only be audited reproducibly if the label system is fixed before any split or transform is performed. For that reason, the pipeline locks 28 canonical classes, maps them into 8 semantic families, and associates each class with 1 of 5 operational policy labels. The canonical classes follow normalized corpus attack names, the family groupings aggregate semantically related attack types for stability analysis, and the policy labels capture the downstream response semantics that the later multi-head pipeline is intended to learn.
Table 3 provides the full class–family–policy mapping used throughout the accepted run. Its role is foundational because it fixes the semantic vocabulary that every subsequent split, audit, and model must inherit.
Table 4 complements the taxonomy by summarizing the 136 raw features present in every Parquet file. For readability, the table groups the inventory by semantic role and representative fields, while the complete column manifest is preserved in the dataset card and associated feature artifacts. Of these 136 inputs, 43 are explicit device or network identifiers, including Media Access Control (MAC) addresses, OUI fields, Internet Protocol (IP) addresses, ports, and rolling aggregates derived from them. This raw inventory is one reason the framework places such emphasis on Device-Feature Dependency Index (DFDI) and Fingerprint Leakage Score (FLS) gates, because any retained feature drawn from this identifier-heavy category would create an immediate leakage path under device-disjoint evaluation.
3.3. Formal Problem Statement and Notation
To formalize the preprocessing problem, let the raw corpus be represented as a device- and vendor-aware labeled dataset. Equation (1) expresses this corpus as
where
denotes the feature vector of the
-th row,
denotes its canonical attack label,
denotes its device identity,
denotes its vendor identity induced from the OUI prefix (when available), and
denotes the total number of rows in the corpus. This notation provides a consistent mathematical reference for the remainder of the manuscript and makes explicit that the preprocessing problem is not merely label-aware, but also device-aware and vendor-aware.
Once the corpus has been defined, the first operational requirement is split proportionality. If
denotes the observed ratio of rows assigned to split
, then the observed split ratio is given by Equation (2):
where
represents the realized proportion of data allocated to split
, and
denotes one of the protocol partitions, namely, training, validation, or test. This quantity is important because it forms the basis for the subsequent drift analysis.
Because the target protocol specifies 70%, 15%, and 15% for training, validation, and test, respectively, the absolute percentage-point drift is measured by Equation (3):
where
denotes the percentage-point drift for split
,
is the observed split ratio from Equation (2), and
is the target ratio for that split. This equation makes it possible to quantify how closely the realized allocation follows the intended protocol.
After establishing split proportionality, the framework turns to leakage control. To support this stage, Equation (4) defines a deterministic quantized flow signature:
where
is the signature of the
-th flow,
are the selected numeric attributes used in the signature,
denotes concatenation, and
denotes the hash function used to produce the final digest. The quantization operator
maps each selected attribute to a deterministic finite-precision representation before hashing. In the accepted run, continuous values were rounded to six decimal places (as specified in the audit configuration), missing values were mapped to a reserved token, and categorical numeric indicators were preserved as integer codes. This ensured that flow signatures were reproducible across repeated executions and robust to insignificant floating-point representation differences.
Once these signatures have been defined, overlap between any two split-signature sets
and
can be summarized by the Jaccard coefficient in Equation (5):
where
is the Jaccard overlap between the two splits,
is the set of flow signatures in split
,
is the set of flow signatures in split
,
denotes set intersection, and
denotes set union. In this framework, the coefficient is interpreted as a leakage-risk proxy and feeds directly into the flow-signature Jaccard gate.
Beyond row-level overlap, the framework also constrains device-identifying content at the feature level. Equation (6) defines the normalized mutual information between a feature and device identity:
where
is the normalized mutual information between feature
and device label
,
denotes their mutual information, and
and
denote the entropies of the feature and the device label, respectively. The denominator
was used as a conservative normalization because it scaled mutual information by the smaller available entropy source. Under this formulation, a feature received a high dependency score when it explained a large fraction of either its own entropy or the device-label entropy. This made the dependency gate stricter for low-entropy features that could behave as compact device identifiers.
Using this primitive, the Device-Feature Dependency Index was defined as the maximum normalized device dependency among the retained shared-safe features as defined in Equation (7):
where
is the Device-Feature Dependency Index,
is the retained shared-safe feature subset, and the max operator selects the highest normalized device dependency among all retained features. This formulation produces a conservative worst-case measure of residual device-dependency leakage.
Feature-distribution stability must also be preserved after split construction. Equation (8) defines the Feature Distribution Stability Score as
where
is the Feature Distribution Stability Score,
is the shared-safe feature subset,
and
are the empirical distributions of feature
in the training and evaluation partitions,
and
are the corresponding cumulative distribution functions,
denotes Jensen–Shannon divergence, and
denotes Kolmogorov–Smirnov distance. This score aggregates distributional divergence across retained features and serves as the principal drift gate in the protocol.
Shared-safe feature selection is then expressed conceptually through Equation (9):
where
is the composite score assigned to feature
,
is its semantic utility with respect to attack labels,
is the device-dependency penalty,
is the drift-instability penalty,
is the missingness or coercion burden, and
is the explicit identifier-leakage penalty. Before aggregation, all score components were normalized to a common scale. In the accepted run, the penalty weights were fixed as
, so that device dependency, distributional drift, missingness/coercion burden, and explicit identifier leakage contributed symmetrically to the penalty term. This equal-weight setting was selected a priori and was not tuned on the validation or test partitions, thereby avoiding an additional optimization hyperparameter in the preprocessing protocol. The score was used only as a ranking mechanism; final retention still required each feature to satisfy the hard guards on device dependency, drift stability, explicit identifier leakage, missingness, and transform reliability. Therefore, the final retained feature set was not determined by Equation (9) alone, and a high utility score could not override leakage or stability constraints. This design improved reproducibility while reducing sensitivity to arbitrary penalty-weight choices.
Open-set correctness is summarized through zero-day purity. If
denotes all designated holdout rows routed to the test set and
denotes any contamination of those rows into training or validation, then Equation (10) defines purity as
where
is the zero-day purity percentage,
is the set of holdout rows,
is the contamination set, and
denotes set cardinality. This metric measures the fraction of holdout rows preserved exclusively in the test split and directly supports the zero-day purity gate.
The framework then evaluates family-level stability through the Attack Invariance Score, defined in Equation (11):
where
is the Attack Invariance Score,
is the set of evaluation splits considered in the comparison,
denotes total-variation distance,
is the family-level class distribution in the training split, and
is the corresponding family-level distribution in evaluation split
. This score measures how well broad attack-family structure is preserved across partitions.
Finally, the framework measures whether the finer semantic arrangement of classes within each family survives split governance and feature filtering. Equation (12) defines the Attack Semantic Consistency Score as
where
is the Attack Semantic Consistency Score,
is the set of semantic attack families,
is the set of evaluation splits,
denotes Jensen–Shannon divergence,
is the class distribution conditioned on family
in the training split, and
is the corresponding conditional class distribution in evaluation split
. This final metric captures whether semantic structure survives not only partitioning, but also the aggressive leakage-suppression logic imposed by the shared-safe feature-selection stage.
4. Proposed Scientific Integrity Framework
4.1. Design Principles
The framework is built on five design principles that remain connected throughout the pipeline. First, taxonomy locking precedes split construction so that alias normalization cannot drift across stages. Second, split governance is device-disjoint for device-addressable rows because device signatures are a primary confounding source in IoT traffic. Third, zero-day handling is explicit rather than implicit: holdout classes are defined before routing and their final allocation is audited after writing. Fourth, all transformations that estimate statistics such as scaling, clipping, and imputation are fitted only on training data. Fifth, the pipeline ends with hard scientific gates rather than purely visual dashboard interpretation. Together, these principles create a direct chain of evidence from raw data to final scientific decision and explain why the framework should be understood as a scientific integrity protocol rather than as a preprocessing convenience.
4.2. Full System Architectural Framework
Figure 1 depicts the full system architectural framework of the proposed preprocessing protocol. The figure presents the end-to-end governed flow of the system, beginning with raw ingestion and taxonomy locking, continuing through grouped split governance, holdout feasibility analysis, shared-safe feature selection, train-only transformation, and audit emission, and ending with the final scientific decision. Each block corresponds to a deterministic component of the implemented pipeline, so the architecture serves not merely as a conceptual overview but as a map of the evidence-producing stages of the framework.
4.3. Canonical Taxonomy Lock and Label Normalization
Before any grouped split is constructed, the label space is normalized to the canonical 28-class vocabulary shown earlier in
Table 3. This stage removes ambiguity arising from raw file names, attack aliases, case variation, and punctuation differences. Algorithm 1 formalizes taxonomy locking and label normalization. Its role is foundational because, once the canonical mapping is fixed, all downstream summaries, family assignments, and policy labels become deterministic. In other words, this is the first irreversible stage of the protocol and the first point at which reproducibility is enforced structurally rather than narratively.
| Algorithm 1: Canonical taxonomy locking and label normalization |
| Input: raw labels , canonical class list , family map , policy map |
| Output: canonical labels , family labels , policy labels |
| 1: for each raw label in do |
| 2: normalize case, punctuation, whitespace, and delimiter variants |
| 3: if matches a canonical class in then |
| 4: canonical form of |
| 5: else if matches a registered alias then |
| 6: canonical target of the alias |
| 7: else |
| 8: mark as unresolved and raise integrity warning |
| 9: end if |
| 10: ▷ semantic family assignment |
| 11: ▷ downstream policy assignment |
| 12: end for |
| 13: emit label, family, and policy dictionaries as immutable artifacts |
4.4. Device-Disjoint Vendor-Aware Split Construction
Once taxonomy locking is complete, the protocol proceeds to grouped split construction. The purpose of this stage is to assign device-addressable rows to mutually disjoint training, validation, and test groups while simultaneously controlling ratio drift and vendor imbalance. Algorithm 2 is central because it is the mechanism through which the framework controls device-level confounding. The split is not merely a random partition of rows. It is a governed assignment problem in which device identity and vendor composition are treated as integrity constraints.
| Algorithm 2: Device-disjoint vendor-aware grouped split construction |
| Input: device-grouped rows , target ratios , vendor map |
| Output: grouped train, validation, and test device sets |
| 1: group rows by device identifier |
| 2: compute device-level row counts and vendor affiliations |
| 3: initialize empty split sets |
| 4: sort devices by descending row count and balancing priority |
| 5: for each device group do |
| 6: evaluate provisional assignment of to each split |
| 7: compute ratio drift penalty under Equation (3) |
| 8: compute vendor-balance penalty using current vendor composition |
| 9: assign to the split with minimum total penalty |
| 10: end for |
| 11: iteratively refine assignments if any split remains outside tolerance |
| 12: verify that |
| 13: emit split_protocol.json and device_split_assignment.csv |
4.5. Feasibility-Aware Zero-Day Routing with Audited Row-Level Fallback
The framework treated open-set handling as a constrained routing problem rather than as a post hoc labeling choice. The requested mode was device-level holdout for selected attack classes, but that request was accepted only when class completeness and minimum training support remained feasible after grouped assignment. In this study, device-level zero-day holdout was considered feasible only when two conditions were simultaneously satisfied. First, all rows belonging to the designated holdout classes had to be routable to the test partition without any contamination into the training or validation partitions. Second, after removing the holdout-class device groups, the remaining training partition had to preserve non-zero supervised support for every non-holdout canonical class. This minimum support condition was deliberately conservative because the present work evaluated preprocessing integrity rather than downstream classifier optimization.
In the accepted run, the requested zero-day mode was device-level holdout, with backdoor_malware and xss designated as holdout classes. However, class-complete device-level holdout was not feasible without weakening the supervised support required for known-class learning. The protocol therefore activated ROW_LEVEL_FALLBACK_REQUIRED. This fallback did not claim strict device-novel zero-day evaluation. Instead, it preserved zero contamination by emitting all designated holdout rows exclusively to the test partition while explicitly recording the weaker but reproducible open-set mode. This distinction was important because the framework was designed to report the strongest feasible open-set condition, not to overstate the experimental setting.
Algorithm 3 formalizes the feasibility-aware routing procedure. Its main purpose was to make the open-set decision auditable: the system first attempted device-level holdout, checked whether the resulting known-class training support remained valid, and then either accepted device-level routing or activated row-level fallback. In both cases, the final split proof recorded the effective mode, the holdout classes, the holdout-row counts, the contamination count, and the resulting zero-day purity.
| Algorithm 3: Feasibility-aware zero-day routing with row-level fallback and purity auditing |
| Input: grouped splits , holdout class set |
| Output: effective open-set routing mode and holdout emission plan |
| 1: request device-level holdout for all rows with labels in |
| 2: estimate remaining supervised support in training after holdout removal |
| 3: if class-complete device-level holdout preserves feasibility then |
| 4: effective_mode DEVICE_LEVEL |
| 5: route all holdout-class device groups to test |
| 6: else |
| 7: effective_mode ROW_LEVEL_FALLBACK_REQUIRED |
| 8: keep grouped split assignments for known classes |
| 9: emit holdout-class rows only during final write stage into test |
| 10: enforce contamination count for train and validation |
| 11: end if |
| 12: compute zero-day purity using Equation (10) |
| 13: emit final_row_level_split_proof.json and validation audit figures |
The fallback mechanism was therefore not a relaxation of contamination control. It was a transparent feasibility response to class-support constraints. The resulting open-set condition was weaker than strict device-level novelty, but it remained scientifically auditable because the effective mode, contamination count, and holdout purity were reported explicitly.
4.6. Shared-Safe Feature Selection
The full 136-feature inventory, summarized in
Table 4, contained 43 explicit device or network identifier fields, including MAC addresses, OUI fields, Internet Protocol (IP) addresses, ports, and rolling aggregates derived from source and destination identity information. Because such fields could introduce direct or indirect device memorization under a device-disjoint evaluation protocol, the feature-selection stage was executed only after taxonomy locking, grouped split construction, and zero-day routing had been finalized. The purpose of this stage was not to maximize raw predictive capacity at any cost. Instead, the objective was to retain a compact set of predictors that preserved protocol-level security semantics while satisfying strict scientific-integrity constraints on identifier leakage, device dependency, distributional stability, missingness, coercion burden, and train-only transform reliability. Thus, the selector favored features that were interpretable from a network-protocol perspective and that remained stable across the governed train, validation, and test partitions.
Algorithm 4 formalizes the shared-safe feature-selection procedure. The algorithm first excluded direct identifiers and identifier-derived fields, then evaluated the remaining numeric and protocol-level candidate features using semantic utility, device-dependency penalty, distributional-drift burden, missingness/coercion burden, and explicit identifier-leakage penalty. Final retention was not determined by a single ranking score alone. A feature could be retained only if it also passed the hard guards on device dependency, identifier leakage, distributional stability, missingness, and transform reliability. The resulting subset contained 12 retained shared-safe features. This reduction should be interpreted as a conservative integrity decision rather than as a claim that only 12 variables were universally sufficient for all downstream intrusion-detection models. The retained subset represented the smallest feature group that satisfied the framework’s hard leakage and stability requirements while preserving protocol-level attack semantics. Larger leakage-safe feature sets may still be useful for downstream classifier optimization, but the present framework prioritized a defensible preprocessing substrate over maximal closed-set predictive capacity.
Table 5 therefore reports the retained features as an integrity-approved representation rather than as a conventional feature-importance ranking.
| Algorithm 4: Shared-safe feature selection under semantic-utility and leakage constraints |
| Input: numeric feature set , label utility , device dependency , drift , burden |
| Output: shared-safe subset |
| 1: compute label utility for every feature using normalized label mutual information |
| 2: compute device dependency using Equation (6) |
| 3: compute drift burden using Equation (8) primitives |
| 4: compute missingness/coercion burden |
| 5: assign name-based identifier penalty for explicit device or vendor leakage cues |
| 6: compute using Equation (9) |
| 7: remove features violating hard guards on device dependency or instability |
| 8: rank remaining features by descending |
| 9: iteratively trim worst features until all scientific gates pass |
| 10: return final shared-safe subset with |
4.7. Train-Only Preprocessing and Transform Stability
All estimated transformations are fitted on the training split only. This includes scaling, clipping, and any imputation statistics, although the accepted run recorded zero-percent missingness across training, validation, and test. Restricting fit statistics to the training partition prevents subtle information transfer from evaluation partitions into the learned representation. The feature-forensics audit further confirmed zero missingness and zero coercion for every retained feature across all splits, which strengthens the argument that the accepted representation is not only leakage-safe but also numerically stable.
4.8. Diagnostic Harness, Scientific Integrity Gates, and Decision Logic
The framework concluded with a diagnostic harness and a set of hard scientific integrity gates. The diagnostic harness served as an auditable verification layer that consolidated the outputs of the preprocessing protocol into machine-readable checks. It did not evaluate downstream classifier performance. Instead, it verified whether the emitted preprocessing substrate satisfied the scientific conditions required for later model training and evaluation.
The harness checked artifact completeness, taxonomy consistency, split and fallback proof, retained-feature consistency, hard scientific gate outcomes, baseline-comparison validity, and manuscript-ready metric values. These checks were mapped to hard diagnostic contracts or advisory statuses so that the final decision could be reconstructed from evidence rather than from visual dashboard interpretation alone. In this sense, the diagnostic harness strengthened the reproducibility of the framework by ensuring that the accepted run was supported by explicit artifacts and not only by narrative reporting.
The hard scientific gates formed the quantitative acceptance layer of the framework. Each gate was defined by a status, severity level, measured value, threshold, optimization direction, and rationale. The quantitative gate layer operationalized the diagnostic logic by converting preprocessing-integrity requirements into pass/fail evidence.
Table 6 provides the hard scientific gates used for final decision making, including their statuses, measured values, thresholds, optimization directions, and rationales.
The hard gates in
Table 6 were preprocessing-integrity gates rather than downstream classifier-performance thresholds. They evaluated split leakage, holdout purity, duplicate-flow risk, feature-distribution stability, device-feature dependency, fingerprint leakage, and semantic preservation. No gate was based on classifier accuracy, precision, recall, or macro-F1, because the present study evaluated the trustworthiness of the data substrate rather than the performance of a final detection model.
A run was marked as accepted only when every hard scientific gate passed and no unresolved advisory blocker remained. In the accepted run analyzed here, the final banner reported that all hard scientific gates passed and that no unresolved advisory blocker remained. This point was important because the framework was designed to produce an auditable preprocessing decision, not merely a dashboard display.
The diagnostic harness then provided a secondary verification layer for this decision. It checked whether the required artifacts, taxonomy mappings, split/fallback proof, retained-feature contract, scientific gate outputs, and baseline-comparison files were present and internally consistent. This additional verification step ensured that the accepted run could be inspected through machine-readable evidence and reproduced as a governed preprocessing substrate for later model-focused experiments.
5. Experimental Protocol
5.1. Environment, Inputs, and Outputs
The implementation was executed as a combined shared-dashboard preprocessing run over the raw Parquet source directory and the OUI enrichment file described earlier. The output structure included META, TABLES, REPORTS, FIGURES, SHARDS, LOGS, AUDITS, and MEMMAPS folders. These directories stored the protocol configuration, taxonomy artifacts, split proofs, scientific flags, diagnostic tables, figure outputs, shard-level emissions, and audit logs needed to reconstruct the accepted run.
The primary preprocessing artifacts included the preprocessing summary, dataset card, taxonomy card, split protocol, train-only preprocessor bundle, final metric summary, final scientific flags, and final row-level split proof. This artifact structure was important because it converted the accepted run into an inspectable scientific record rather than a transient computation. The accepted decision could therefore be traced from the raw dataset scan through taxonomy locking, split construction, fallback routing, feature selection, gate evaluation, and final reporting.
In addition to the primary preprocessing outputs, a diagnostic harness was executed to verify the integrity of the accepted run. The harness served as an independent verification layer for the preprocessing substrate. It did not evaluate downstream classifier accuracy, precision, recall, macro-F1, or open-set AUROC. Instead, it verified artifact completeness, taxonomy consistency, split and fallback proof, scientific gate outcomes, retained-feature consistency, baseline-comparison validity, and manuscript-ready metric values. This additional verification layer strengthened reproducibility by ensuring that the accepted decision was supported by machine-readable contracts as well as by the original preprocessing outputs.
Table 7 lists the core artifacts used to reconstruct the accepted run reported in this paper. In effect, these artifacts form the evidentiary backbone of the framework.
Together, these artifacts formed the evidentiary backbone of the study. The primary preprocessing outputs documented how the dataset was governed, transformed, and audited, while the diagnostic harness outputs verified that the reported substrate satisfied the required artifact, taxonomy, split, feature, gate, and baseline-comparison contracts. This structure made the accepted run reproducible, inspectable, and suitable for later model-focused experiments.
5.2. Evaluation Metrics
The accepted run was evaluated using split-integrity metrics, leakage metrics, feature-stability metrics, open-set purity metrics, and family-semantic stability metrics. The formal definitions of these quantities were introduced earlier in Equations (2)–(12). As clarified after
Table 6, these measures were preprocessing-integrity metrics rather than downstream classifier-performance thresholds. Additional supporting quantities, such as device exclusivity score, vendor-conditioned entropy, clipping rates, outlier rates, and duplicate-flow statistics, provided diagnostic context.
Class imbalance was handled as a protocol-governance issue rather than through synthetic resampling. The preprocessing stage did not apply Synthetic Minority Oversampling Technique (SMOTE), random oversampling, or random undersampling because such operations could alter the empirical distribution being audited and could introduce additional leakage risks if performed before split finalization. Instead, the framework protected imbalance-sensitive validity by preserving class visibility where feasible, reporting holdout coverage, separating known-class and zero-day routing logic, and auditing family-level and class-level semantic consistency after split construction. Any later classifier trained on the emitted artifacts may apply class weighting, focal loss, balanced sampling, threshold calibration, or other imbalance-aware learning strategies, but such operations must be fitted strictly within the training partition.
Table 8 organizes the metric families used to audit preprocessing quality and links each family to its operational purpose. Split-proportionality metrics measured whether the realized training, validation, and test partitions remained close to the target ratios. Leakage-control metrics measured device overlap, flow-signature Jaccard risk, and fingerprint leakage. Deconfounding metrics measured residual dependence between retained features and device identity. Stability metrics measured post-transform distributional drift using the Feature Distribution Stability Score and related distributional diagnostics. Open-set integrity metrics measured holdout contamination, zero-day purity, and holdout coverage. Semantic-preservation metrics measured whether broad attack-family structure and within-family class structure remained stable across partitions.
Together, these metrics ensured that the final accepted decision was based on auditable preprocessing evidence rather than on classifier performance. This distinction was central to the study because the framework was designed to validate the trustworthiness of the data substrate before downstream model training.
6. Results
6.1. Dataset Profile and Class Imbalance
The accepted run first needs to be understood at the level of scale and partition structure. As shown in
Figure 2, 25,154,393 rows are allocated to training, 5,117,974 rows to validation, and 5,400,040 rows to test.
Figure 2 therefore visualizes the final split structure and shows that the achieved ratios remain close to the protocol targets. This result is important because it demonstrates that strict governance did not collapse the dataset into an unusable partitioning regime.
6.2. Split Integrity and Open-Set Isolation
The most important integrity question is whether the final split remains both device-disjoint and open-set honest.
Figure 3 addresses this question directly by showing that no holdout rows enter training or validation, while 73,450 holdout rows are emitted exclusively to test. In other words, the framework preserves the unknown-class challenge where it matters most: at evaluation time. This is the central novelty of the routing stage, because it replaces informal open-set claims with a verifiable isolation outcome.
The zero-day audit can be examined more directly through
Figure 4 and
Figure 5.
Figure 4 reports the zero-day purity audit, while
Figure 5 reports the class-specific holdout counts for backdoor malware and cross-site scripting. Read together, these figures show not only that the holdout mechanism worked, but also that the final open-set test burden is transparent at the class level.
Table 9 quantifies the final split structure using both row counts and grouped-device counts available at the protocol-lock stage. It complements the visual summary in
Figure 2,
Figure 3,
Figure 4 and
Figure 5 by showing that row-level balance, grouped assignment, and holdout routing can be inspected in one compact view.
Table 10 complements
Figure 3,
Figure 4 and
Figure 5 by consolidating the final open-set routing outcome into one auditable summary. Its purpose is to show the effective zero-day mode, the holdout rows by split, the contamination count, and the resulting purity in a form that can be verified independently of the figures.
6.3. Leakage and Deconfounding Analysis
The leakage-control results are consolidated in
Figure 6 and
Figure 7.
Figure 6 summarizes the primary integrity metrics, namely, Feature Distribution Stability Score, Device-Feature Dependency Index, Fingerprint Leakage Score, Attack Invariance Score, and Attack Semantic Consistency Score.
Figure 7 then provides a master integrity view that situates these values within the broader accepted-run decision. Together, these figures show that leakage suppression did not come at the cost of semantic collapse.
Table 11 provides the exact gate outcomes that underlie
Figure 6 and
Figure 7. By listing the final values, thresholds, optimization directions, and pass statuses together, the framework’s acceptance logic is made transparent and reproducible.
As shown in
Figure 8, the family-level attack invariance heatmap indicates that the retained representation preserves broad family structure across splits even after aggressive leakage suppression. Although a heatmap is only a supporting visualization, it reinforces the metric-based conclusion that semantic family behavior remains stable under the governed split.
6.4. Feature Stability and Retained Representation
The retained 12 shared-safe features are drawn from protocol-level descriptors within the 136-column raw inventory summarized in
Table 4.
Figure 9 further examines this representation through a correlation heatmap, showing that most retained predictors remain weakly coupled, with only a small number of stronger relationships. This matters because the framework is not merely selecting low-leakage features—it is selecting a compact representation that remains structurally interpretable after aggressive deconfounding.
Outlier behavior is examined in
Figure 10, which shows the feature-wise outlier distribution under the interquartile-range proxy for the retained shared-safe predictors. In combination with the earlier stability metrics, the figure indicates that the retained representation is not only leakage-safe but also numerically well-behaved.
Table 12 complements
Figure 9 and
Figure 10 by providing the scalar diagnostics that characterize feature health and transform stability. These values complete the argument that the final retained subset is compact, low-risk, and operationally stable.
6.5. Final Scientific Decision and Diagnostic Harness Verification
The results culminated in a single scientific decision: the accepted run satisfied the framework’s preprocessing-integrity criteria. The PREPROCESSING_SUMMARY artifact recorded an overall status of ACCEPTED together with the banner SCIENTIFIC INTEGRITY VERIFIED. This decision followed directly from the hard-gate structure reported in
Table 11, where all required scientific gates passed under their declared thresholds. The final decision therefore closed the loop between protocol design, measured evidence, and auditable decision logic.
To strengthen the reproducibility of this decision, the accepted run was further verified using the diagnostic harness described in
Section 4.8. The harness consolidated the emitted preprocessing artifacts into six hard diagnostic contracts: artifact completeness, taxonomy consistency, split/fallback proof, scientific gate verification, retained-feature consistency, and baseline-comparison validity. These contracts were evaluated using machine-readable evidence rather than manual inspection alone.
Table 13 summarizes the diagnostic harness verification outcome by showing each diagnostic contract, along with its severity level, pass status, evidence count, and acceptance requirement.
As shown in
Table 13, all six diagnostic contracts passed with zero hard failures. The diagnostic harness therefore produced the final decision ACCEPTED—SCIENTIFIC INTEGRITY VERIFIED, with zero hard failures and zero warnings. This result confirmed that the accepted preprocessing run was supported not only by the original gate outcomes, but also by a secondary verification layer that checked artifact completeness, taxonomy validity, split/fallback proof, retained-feature consistency, scientific gate correctness, and baseline-comparison availability.
The diagnostic harness also confirmed the manuscript-level values used in the accepted-run report. These included zero device-disjoint MAC leakage, 100% zero-day purity, zero flow-signature Jaccard risk, split-ratio drift of 0.652849, Feature Distribution Stability Score of 0.005180, Device-Feature Dependency Index of 0.000000, Fingerprint Leakage Score of 0.000000, Attack Invariance Score of 0.929636, and Attack Semantic Consistency Score of 0.907144. These values were consistent with the scientific gate outcomes reported earlier and confirmed that the accepted decision was supported by both primary preprocessing artifacts and independent diagnostic verification.
Accordingly, the final decision should be interpreted as certification of the preprocessing substrate rather than certification of a downstream classifier. The accepted run demonstrated that the dataset partitioning, zero-day routing, retained-feature contract, leakage-control metrics, semantic-preservation metrics, and baseline-comparison artifacts satisfied the declared scientific-integrity requirements. This made the emitted substrate suitable for subsequent model-focused experiments involving baseline classifiers, multi-head intrusion-detection architectures, and ablation studies.
6.6. Baseline Split-Protocol Comparison and Repeatability Analysis
To contextualize the benefit of the proposed framework, a baseline split comparison was conducted against two simpler preprocessing strategies on the same CICIoT-DIAD 2024 corpus. The first baseline was a conventional random stratified row split, which approximated common row-level evaluation practice. The second baseline was a simple device-disjoint split, which assigned known-device rows to mutually exclusive partitions but did not apply the full vendor-aware balancing, zero-day routing, shared-safe feature selection, or hard-gate audit logic used by the proposed framework. Each baseline strategy was repeated across five random seeds and summarized using mean and standard deviation. The proposed framework was deterministic once the taxonomy, holdout classes, split targets, and gate thresholds were fixed; therefore, its accepted run was reported as the governed protocol outcome.
Table 14 summarizes the resulting baseline comparison and repeatability analysis.
The comparison showed that conventional random stratified splitting produced near-perfect family and class distribution stability, but at the cost of severe integrity violations. It allowed device overlap across partitions, produced high flow-signature Jaccard risk, and failed to preserve zero-day isolation. The simple device-disjoint baseline removed device overlap, but it introduced substantial split-ratio drift and still failed to isolate the designated zero-day classes. In contrast, the proposed framework was the only strategy that jointly achieved zero device overlap, zero flow-signature Jaccard risk, 100% zero-day purity, zero measured device-feature dependency, and zero fingerprint leakage while keeping split-ratio drift within the accepted tolerance. Although its AIS and ASCS values were lower than those of the random split, they remained higher than the hard acceptance thresholds, indicating that semantic structure was preserved under stricter leakage-control conditions.
This result clarified the role of the framework. The objective was not to maximize superficial distributional similarity between partitions, because such similarity can be achieved through leakage-prone random mixing. Instead, the framework prioritized a more scientifically defensible evaluation substrate by jointly controlling device overlap, duplicate-flow risk, zero-day contamination, feature-level device dependency, and semantic preservation.
7. Discussion
The accepted run showed that rigorous preprocessing could remain both stringent and productive. The proposed framework preserved 100% zero-day purity, zero device overlap, and zero flow-signature Jaccard leakage risk, while retaining a compact 12-feature shared-safe representation. This result suggested that leakage suppression did not necessarily collapse the analytical substrate. Instead, when feature retention was governed by explicit integrity constraints, a smaller representation could still preserve protocol-level attack semantics while avoiding obvious device-identity and duplicate-flow leakage paths.
The baseline comparison further clarified the contribution of the framework. The random stratified split preserved distributional similarity very strongly, but it did so by allowing device overlap, high flow-signature Jaccard risk, non-zero device-feature dependency, non-zero fingerprint leakage, and poor zero-day purity. This confirmed that apparently stable train–test distributions could be misleading when they were produced by leakage-prone row-level mixing. The simple device-disjoint baseline removed device overlap, but it introduced large split-ratio drift and still failed to preserve the designated zero-day holdout classes. By contrast, the proposed framework was the only evaluated strategy that simultaneously achieved zero device overlap, zero flow-signature Jaccard risk, 100% zero-day purity, zero measured device-feature dependency, zero fingerprint leakage, and acceptable semantic preservation. This demonstrated that the framework’s value did not lie merely in producing a balanced split, but in coordinating split governance, leakage auditing, holdout routing, feature safety, and final gate verification within a single auditable protocol.
The retained 12-feature representation should therefore be interpreted carefully. It was not presented as a universally optimal feature set for all downstream intrusion-detection classifiers. Rather, it represented the most conservative integrity-approved feature subset produced by the accepted run. The reduction was useful because it showed that a compact protocol-level representation could satisfy the framework’s leakage, stability, missingness, transform-reliability, and semantic-preservation gates. However, larger leakage-safe feature sets may still improve downstream classifier performance, especially for fine-grained 28-class detection. Thus, the 12-feature subset should be understood as a defensible preprocessing substrate rather than as a final predictive feature-optimization claim.
A second important finding concerned open-set honesty. The requested zero-day mode was device-level holdout, but the final accepted run required row-level fallback. This weakened the strictest form of device-novel open-set evaluation, and the result should not be overstated as full device-level zero-day generalization. Nevertheless, the fallback was scientifically useful because it preserved zero contamination from the designated holdout rows and made the effective evaluation mode explicit. Rather than hiding the infeasibility of class-complete device-level holdout, the framework reported it, recorded the fallback, and emitted proof artifacts that allowed the compromise to be audited. This distinction was important because transparent boundary reporting is preferable to stronger but unsupported open-set claims.
The diagnostic harness strengthened this interpretation by verifying that the accepted run was supported by machine-readable evidence. The harness checked artifact completeness, taxonomy consistency, split and fallback proof, retained-feature consistency, scientific gate outcomes, and baseline-comparison validity. Therefore, the accepted decision should be interpreted as the certification of the preprocessing substrate, not the certification of a downstream intrusion-detection model. This distinction matters because the present study evaluated whether the data foundation was trustworthy enough for later model training, rather than whether a specific classifier achieved the best possible accuracy, macro-F1, or open-set AUROC.
Relative to prior model-centric IoT intrusion-detection studies, the proposed framework shifted attention from classifier architecture to evaluation integrity. Many high-performing models can appear convincing when trained and tested on leakage-prone partitions, but such results may not reflect deployable security intelligence. The present framework addressed this problem by making preprocessing decisions visible, measurable, and auditable. Its contribution was therefore complementary to downstream model development: it provided a stronger data-governance foundation on which future device-identification, attack-classification, zero-day detection, and policy-prediction models could be evaluated more credibly.
The practical implication is that downstream models trained on the emitted artifacts would inherit a more defensible experimental substrate. This does not guarantee downstream excellence, and it does not replace the need for classifier-level validation. However, it reduces the risk that future performance claims will be driven by device overlap, duplicate-flow leakage, feature-level fingerprinting, or poorly documented holdout construction. Future model-focused work should therefore evaluate lightweight and deep classifiers on the proposed substrate, compare larger leakage-safe feature subsets against the current 12-feature representation, and quantify open-set performance using metrics such as macro-F1, per-class precision and recall, AUROC, AUPRC, and FPR@95%TPR for the designated holdout classes.
8. Limitations and Threats to Validity
A primary limitation of this study lies in its scope. The work was designed as a preprocessing and scientific-integrity protocol study rather than as a downstream classifier-performance study. Its contribution was therefore the establishment of a rigorous data-governance foundation upon which later multi-head tasks, including device identification, attack classification, zero-day detection, and policy learning, could be developed and evaluated. To strengthen the evidential value of the protocol, the study also evaluated baseline split comparisons against random stratified and simple device-disjoint strategies. These baselines were required because, without comparison to conventional preprocessing alternatives, the relative benefit of the proposed framework could not be quantified. The random stratified split represented a common distribution-preserving but leakage-prone practice, while the simple device-disjoint split represented a stricter device-aware alternative without the full leakage-audit, fallback-proof, feature-safety, and diagnostic-gate structure of the proposed framework. Comparing these strategies made it possible to show that the proposed framework did not merely generate an accepted preprocessing run, but achieved stronger integrity in terms of device overlap, flow-signature leakage risk, zero-day purity, device-feature dependency, fingerprint leakage, split stability, and semantic preservation. Thus, the baseline comparisons supported the preprocessing contribution without converting the manuscript into a downstream classifier study. A second limitation concerns the effective open-set configuration achieved in the accepted run. Although the protocol preserved zero contamination and 100% zero-day purity, the two held-out classes were not device-novel in the strictest sense because the final execution required row-level fallback rather than class-complete device-level holdout. This distinction is stated explicitly because the transparency of that compromise forms part of the framework’s scientific value.
A further limitation concerns portability and computational cost. The protocol was instantiated on a specific IoT benchmark together with an associated Organizationally Unique Identifier enrichment file. While the underlying principles of device-disjoint governance, train-only fitting, and holdout auditing are transferable, threshold calibration, feature-retention behavior, and the computational cost of large-scale hashing and audit generation may vary across other corpora. These constraints do not diminish the validity of the present findings, but they do define the appropriate boundaries of their generalization.
9. Reproducibility and Artifact Availability
Reproducibility was an explicit design goal of the framework. The accepted run emitted versioned reports, metric summaries, split proofs, scientific flags, taxonomy dictionaries, retained-feature manifests, figure registries, diagnostic contracts, and baseline-comparison outputs. The core preprocessing artifacts included preprocessing_summary.md, dataset_card.md, taxonomy_card.json, split_protocol.json, final_row_level_split_proof.json, final_metric_summary.json, final_scientific_flags.csv, and the train-only preprocessor bundle. Together, these materials provided the evidence needed to reconstruct the accepted preprocessing decision without rerunning the full pipeline from scratch.
The framework also emitted diagnostic-harness artifacts that verified the internal consistency of the accepted run. These included artifact-completeness checks, taxonomy-contract checks, split/fallback-contract checks, scientific-gate verification, retained-feature verification, baseline-comparison verification, and the final diagnostic summary. These diagnostic outputs were important because they converted the accepted decision into a machine-readable audit trail rather than a purely narrative claim.
The raw source files were stored in Parquet format with embedded schema, and the framework maintained SHA-256 manifests for source tracking and verification. This design supported bit-level provenance checking for the audited inputs and helped ensure that the evidence trail remained stable across independent verification attempts. The artifact structure also separated grouped split proof, row-level fallback proof, train-only preprocessing evidence, retained-feature diagnostics, final metric consolidation, and baseline split-comparison outputs. This separation was essential because open-set feasibility, feature safety, and baseline comparison were evaluated through different evidence layers.
For the final publication package, the authors intend to release the preprocessing code, configuration files, figure-generation scripts, diagnostic-harness templates, baseline-comparison scripts, and non-sensitive derived artifacts in a controlled repository, subject to institutional approval and dataset-licensing conditions. Because the raw CICIoT-DIAD 2024 files and IEEE OUI registry were externally sourced, the repository will not redistribute third-party data unless redistribution is explicitly permitted. Instead, it will provide configuration files, artifact schemas, run manifests, and instructions that allow authorized users to reproduce the preprocessing and audit workflow using their own lawful copies of the source data. Until repository release, the generated audit artifacts and supporting outputs can be made available for scholarly inspection upon reasonable request.
10. Conclusions
This paper presented a scientific integrity framework for open-set Internet of Things intrusion-detection preprocessing with device-disjoint split governance. The framework formalized taxonomy locking, vendor-aware device profiling, grouped split construction, feasibility-aware zero-day routing, shared-safe feature selection, train-only preprocessing, diagnostic-harness verification, and hard scientific gate evaluation as one end-to-end protocol. Its main contribution was not a new classifier architecture, but a reusable and auditable preprocessing substrate for more trustworthy IoT security evaluation.
On the accepted run over 35,672,407 records from the CICIoT-DIAD 2024 corpus, the framework achieved zero device overlap, zero flow-signature Jaccard leakage risk, 100% zero-day purity, a Feature Distribution Stability Score of 0.00518, a Device-Feature Dependency Index of 0.00000, a Fingerprint Leakage Score of 0.00000, an Attack Invariance Score of 0.92964, and an Attack Semantic Consistency Score of 0.90714. These results showed that strong leakage control, feature-level deconfounding, and semantic preservation could coexist when preprocessing was governed through explicit scientific gates.
The baseline comparison further demonstrated the value of the proposed protocol. Random stratified splitting produced strong distributional similarity, but at the cost of device overlap, flow-signature leakage, and poor zero-day isolation. The simple device-disjoint baseline removed device overlap, but introduced substantial split-ratio drift and still failed to preserve the designated zero-day holdout classes. By contrast, the proposed framework was the only evaluated strategy that simultaneously satisfied the core integrity requirements for device overlap, duplicate-flow leakage, zero-day purity, device-feature dependency, fingerprint leakage, and semantic preservation.
The accepted run also clarified the boundary of the open-set claim. Strict device-level zero-day holdout was requested, but it was infeasible for the selected holdout classes without weakening supervised known-class support. The framework therefore activated an audited row-level fallback. This fallback preserved contamination-free holdout isolation, but it should not be interpreted as strict device-novel zero-day evaluation. This transparent reporting of the strongest feasible open-set condition was part of the framework’s scientific value.
The retained 12-feature representation should likewise be interpreted as an integrity-approved compact substrate rather than as a universal predictive optimum. The feature-selection stage prioritized protocol-level semantic coverage, low device dependency, low identifier leakage, distributional stability, missingness control, and train-only transform reliability. Future model-focused studies may evaluate larger leakage-safe feature sets, but the present results showed that a compact representation could satisfy the required scientific-integrity gates.
Future work will extend this preprocessing substrate to downstream classifier validation using lightweight and deep learning models, including attack classification, device identification, open-set zero-day detection, and policy-aware response prediction. Such studies should report classifier-level metrics such as accuracy, macro-F1, per-class precision and recall, AUROC, AUPRC, and FPR@95%TPR, while preserving the same leakage-control and artifact-audit principles established in this work.