Implementation of Lightweight Machine Learning Models for Real-time Text Classification on Resource-Constrained Devices

Citation

Mohammed Al-Helali, Marwah Zaid and Palanichamy, Naveen and Revathi, K. (2025) Implementation of Lightweight Machine Learning Models for Real-time Text Classification on Resource-Constrained Devices. Journal of Informatics and Web Engineering, 4 (3). pp. 126-139. ISSN 2821-370X

[img] Text
1808-Article Text-21396-2-10-20251030.pdf - Published Version
Restricted to Repository staff only

Download (941kB)

Abstract

This paper addresses the growing need for implementing intelligent Natural Language Processing (NLP) systems on low-power, memory-limited devices such as Raspberry Pi, mobile phones, and IoT edge hardware. As edge computing and smart devices proliferate, there is an urgent need for more advanced NLP technology that does not require constant cloud access and is efficient in computing and provides results in real time. While deep learning and cloud-based models typically offer high text-classification accuracy and have demonstrated exceptional performance across a range of NLP tasks, they are often too resource-intensive for real-time deployment in constrained environments. To overcome these limitations, we explore a set of lightweight machine learning (ML) models—Multinomial Naive Bayes, Logistic Regression, and Decision Tree—to perform sentiment classification on a subset of the Amazon Reviews Polarity dataset. Following thorough data preprocessing and Term Frequency-Inverse Document Frequency (TF-IDF) vectorization, two optimization techniques are employed: feature selection via Chi-Squared tests and simulated post-training quantization. Our experimental results show that resource consumption can be substantially reduced, with minimal accuracy loss, thereby demonstrating feasibility for edge-based text analytics and offline functionality. We provide a detailed comparative analysis that highlights how classical ML models remain viable in scenarios where modern deep learning architectures cannot be efficiently deployed.

Item Type: Article
Uncontrolled Keywords: Lightweight, Machine Learning, Text Classification, Resource-Constrained, Sentiment Analysis
Subjects: Q Science > QA Mathematics > QA71-90 Instruments and machines > QA75.5-76.95 Electronic computers. Computer science
Divisions: Faculty of Computing and Informatics (FCI)
Depositing User: Nor Afiqah Mohd Adnan
Date Deposited: 10 Nov 2025 08:54
Last Modified: 10 Nov 2025 08:54
URII: http://shdl.mmu.edu.my/id/eprint/14843

Downloads

Downloads per month over past year

View ItemEdit (login required)