Smart Model: Lightweight with Context-Aware for Malware Detection in IoT Environments
DOI:
https://doi.org/10.24996/ijs.2026.67.12.26Keywords:
IoT malware detection , Continual learning , Context-aware AI, Lightweight Model, Recourse-constrained IoTAbstract
IoT device networks face a complex problem, which is malware detection as it represents a constant threat to the
devices and the continuity of the service provided. Because these devices operate with limited resources and
computing power that suit their capabilities in different sizes and structures for their intended purpose. However,
the diversity and diversity of malware and the multiplicity of attack patterns have made AI models (machine learning
and deep learning) ineffective and inadequate due to their static traditional technologies and the computational
burden on IoT devices without context. In this paper, we propose a lightweight intelligent model that integrates
continuous learning with contextual embedded processing of resource-constrained IoT devices, where the proposed
model is based on the multi-layer learning architecture MLP which has been optimized using Replay buffer
technology to support continuous learning and engineer contextual features such as time indicator, protocol
behavior, and device behavior to make a model capable of adapting to different and changing network traffic state
over time. Two common and standard datasets IoT-23 and CICIoT-2023, which were previously processed and
converted to Parquet format were tried which proved effective in storing and quick access to large-scale data under
restricted computational settings. The model achieved 97.9% accuracy on the IoT-23 dataset and an overall F1-score
of 0.94, while on the CICIoT- 2023 dataset it achieved an accuracy of 97.7% and an F1 score of 0.82. The integration
of contextual and timing information of the device has proven to significantly improve recall, avoid catastrophic
forgetfulness, avoid retraining from the outset, and also reduced the relative positivity rate from 14,935 to 14,081
detections, which indicates a more accurate identification of real threats




