Comparative Analysis of Random Forest and LSTM for Predictive Maintenance of Electric Motors
DOI:
https://doi.org/10.59247/jfsc.v4i2.421Keywords:
Predictive Maintenance, Random Forest, Electric Motor, Industrial Internet of ThingsAbstract
This study presents a comparative analysis of Random Forest and Long Short-Term Memory (LSTM) algorithms for predictive maintenance of electric motors using Industrial Internet of Things (IIoT) sensor data (current, temperature, vibration). A synthetic dataset from Kaggle comprising 5,000 samples across three operational states (HEALTHY, WARNING, CRITICAL) was employed. Experiments were conducted on Google Colab with a Tesla T4 GPU. The LSTM model achieved a classification accuracy of 98.9%, outperforming Random Forest (98.5%), with perfect precision and recall for the WARNING state and improved recall for the CRITICAL state (0.97 vs. 0.96). However, Random Forest demonstrated substantially shorter training time (2 seconds vs. 30 seconds). For real-time industrial deployment on Programmable Logic Controllers (PLCs), Random Forest is recommended due to its rapid inference (5-10 ms), while LSTM is better suited for critical assets where detection accuracy is prioritized. The findings also confirm the viability of Google Colab as an accessible platform for predictive maintenance research in academic settings. This work contributes a practical framework for selecting between machine learning and deep learning approaches in IIoT-based motor fault diagnosis.
References
A. S. Allahloh, M. Sarfraz, D. Y. Mohammed, N. K. Ibrahim, and H. H. Thary, “From Industrial Automation to Intelligent Automation: The Impact of IIoT on Process Control - A Review,” Iraqi Journal for Computer Science and Mathematics, vol. 6, no. 3, pp. 134–159, 2025, https://doi.org/10.52866/2788-7421.1281.
R. Kumar, M. Mishra, S. Suman, and P. Singh Bali, “Predictive Maintenance in Industrial Systems Using Machine Learning,” International Journal of Innovative Science and Research Technology (IJISRT), vol. 15, no. 4, pp. 1778–1785, 2024, https://doi.org/10.38124/ijisrt/ijisrt24mar1367.
A. Enemosah and O. G. Ifeanyi, “SCADA in the Era of IoT: Automation, Cloud-driven security, and machine learning applications,” International Journal of Science and Research Archive, vol. 13, no. 1, pp. 3417–3435, 2024, https://doi.org/10.30574/ijsra.2024.13.1.1975.
A. Nechibvute and H. D. Mafukidze, “Integration of SCADA and Industrial IoT: Opportunities and Challenges,” IETE Technical Review (Institution of Electronics and Telecommunication Engineers, India), vol. 41, no. 3, pp. 312–325, 2024, https://doi.org/10.1080/02564602.2023.2246426.
H. El hadraoui, A. El maghraoui, O. Laayati, E. Sabani, M. Zegrari, and A. Chebak, “AI-driven diagnosis and health management of autonomous electric vehicle powertrains: An empirical data-driven approach,” Results in Engineering, vol. 27, p. 106157, 2025, https://doi.org/10.1016/j.rineng.2025.106157.
M. Michel, A. Mehanna, S. N. Saleh, and A. S. Shehata, “Proactive fault prediction in marine diesel engines using multivariate machine learning,” Scientific reports, vol. 16, no. 1, p. 9678, 2026, https://doi.org/10.1038/s41598-026-40979-5.
B. Babayigit and M. Abubaker, “Industrial Internet of Things: A Review of Improvements Over Traditional SCADA Systems for Industrial Automation,” IEEE Systems Journal, vol. 18, no. 1, pp. 120–133, 2024, https://doi.org/10.1109/JSYST.2023.3270620.
M. Belgiu and L. Drăgu, “Random forest in remote sensing: A review of applications and future directions,” ISPRS Journal of Photogrammetry and Remote Sensing, vol. 114, pp. 24–31, 2016, https://doi.org/10.1016/j.isprsjprs.2016.01.011.
T. P. Fowdur and L. Ajageer, “A hybrid online learning based predictive maintenance system for industry 4.0,” Computing, vol. 107, no. 6, p. 142, 2025, https://doi.org/10.1007/s00607-025-01494-z.
B.-S. Chen, T.-H. Chu, W.-L. Huang, and W.-S. Ho, “Development and Validation of a CNN-LSTM Fusion Model for Multi-Fault Diagnosis in Hybrid Electric Vehicle Power Systems,” Eng, vol. 7, no. 1, p. 51, 2026, https://doi.org/10.3390/eng7010051.
S. Hanifi, B. Alkali, G. Lindsay, M. Waters, and D. McGlinchey, “Advancements in predictive maintenance modelling for industrial electrical motors: Integrating machine learning and sensor technologies,” Measurement: Sensors, vol. 38, p. 101473, 2025, https://doi.org/10.1016/j.measen.2024.101473.
K. Olcay, S. Giray Tunca, and M. Arif Ozgur, “Forecasting and Performance Analysis of Energy Production in Solar Power Plants Using Long Short-Term Memory (LSTM) and Random Forest Models,” IEEE Access, vol. 12, no. June, pp. 103299–103312, 2024, https://doi.org/10.1109/ACCESS.2024.3432574.
A. K. Pathani, A. Dasari, V. K. Chilakapati, S. R. Keshireddy, V. T. Nagumotu, and H. V. R. Kavuluri, “A Robust and Efficient Deep Learning Approach for Big Data Analytics in Industrial Internet of Things (IIoT) Predictive Maintenance,” International Journal of AI, BigData, Computational and Management Studies, vol. 5, no. 4, pp. 202–211, 2024, https://doi.org/10.63282/3050-9416.IJAIBDCMS-V5I4P122.
I. M. Pires, F. Hussain, N. M. Garcia, P. Lameski, and E. Zdravevski, “Homogeneous data normalization and deep learning: A case study in human activity classification,” Future Internet, vol. 12, no. 11, pp. 1–14, 2020, https://doi.org/10.3390/fi12110194.
L. T. Quang, B. H. Baek, W. Yoon, S. K. Kim, and I. Park, “Comparison of Normalization Techniques for Radiomics Features from Magnetic Resonance Imaging in Predicting Histologic Grade of Meningiomas,” Investigative Magnetic Resonance Imaging, vol. 28, no. 2, pp. 61–67, 2024, https://doi.org/10.13104/imri.2024.0010.
R. Joeres, D. B. Blumenthal, and O. V. Kalinina, “Data splitting to avoid information leakage with DataSAIL,” Nature Communications, vol. 16, no. 1, 2025, https://doi.org/10.1038/s41467-025-58606-8.
A. P. Binitie et al., “Stacked Learning Anomaly Detection Scheme with Data Augmentation for Spatiotemporal Traffic Flow,” Journal of Fuzzy Systems and Control, vol. 2, no. 3, pp. 203–214, 2024, https://doi.org/10.59247/jfsc.v2i3.267.
L. Breiman, “Random forests,” Machine Learning, vol. 45, no. 1, pp. 5–32, 2001, https://doi.org/10.1023/A:1010933404324.
S. Hochreiter and J. Schmidhuber, “Long Short-Term Memory,” Neural Computation, vol. 9, no. 8, pp. 1735–1780, 1997, https://doi.org/10.1162/neco.1997.9.8.1735.
C. Vidal-Silva et al., “Developing Computing Competencies Without Restrictions,” IEEE Access, vol. 10, pp. 106568–106580, 2022, https://doi.org/10.1109/ACCESS.2022.3211973.
Á. G. Do Breviário, J. M. De Souza, J. B. Lucena, L. F. Rago, M. D. T. Gomes, and D. S. da S. Fróes, “Potentialities and Challenges Do Google Colab to Machine Learning and Big Data Analytics,” Current Scientific Journal, vol. 5, no. 5, pp. 208–229, 2025, https://doi.org/10.5281/zenodo.15537694.
T. Shen, H. Dong, and P. Wang, “Research progress on nanocellulose and its composite materials as orthopedic implant biomaterials,” Alexandria Engineering Journal, vol. 87, pp. 575–590, 2024, https://doi.org/10.1016/j.aej.2024.01.003.
I. Barry, M. Hafsi, and S. M. Qaisar, “Boosting Regression Assistive Predictive Maintenance of the Aircraft Engine with Random-Sampling Based Class Balancing,” in Lecture Notes in Networks and Systems, 2024, pp. 21–36, https://doi.org/10.1007/978-3-031-60591-8_3.
S. Kang, “Trustworthy Equipment Monitoring via Cascaded Anomaly Detection and Thermal Localization.” 2026. https://doi.org/10.48550/arXiv.2512.24755.
R. Mennilli, L. Mazza, and A. Mura, “Integrating Machine Learning for Predictive Maintenance on Resource-Constrained PLCs: A Feasibility Study,” Sensors, vol. 25, no. 2, p. 537, 2025, https://doi.org/10.3390/s25020537.
D. Zamora-Arranz, P. Garcia-Bringas, J. J. Gude, and J. Del Ser, “Leveraging programmable logic controllers for machine learning applications in industrial setups,” Results in Engineering, vol. 30, p. 110194, 2026, https://doi.org/10.1016/j.rineng.2026.110194.
A. Fabijan et al., “Automated MRI Video Analysis for Pediatric Neuro-Oncology: An Experimental Approach,” Applied Sciences (Switzerland), vol. 14, no. 18, p. 1330, 2024, https://doi.org/10.3390/app14188323.
M. Pech, J. Vrchota, and J. Bednář, “Predictive maintenance and intelligent sensors in smart factory: Review,” Sensors, vol. 21, no. 4, pp. 1–39, 2021, https://doi.org/10.3390/s21041470.
Y. Zhang, W. Xia, B. Zhao, T. Yuan, and X. Yu, “MPC-Coder: A Dual-Knowledge Enhanced Multi-Agent System with Closed-Loop Verification for PLC Code Generation,” Symmetry, vol. 18, no. 2, p. 248, 2026, https://doi.org/10.3390/sym18020248.
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Muhammad ‘Atiq , Musab Ali El Nefati, Arief Marwanto , Fajar Husain Asy'ari , Rio Subandi , Danang Hendrawan

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.