{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,10,12]],"date-time":"2025-10-12T02:24:24Z","timestamp":1760235864968,"version":"build-2065373602"},"reference-count":41,"publisher":"MDPI AG","issue":"19","license":[{"start":{"date-parts":[[2021,9,29]],"date-time":"2021-09-29T00:00:00Z","timestamp":1632873600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sensors"],"abstract":"<jats:p>Edge Computing enables to perform measurement and cognitive decisions outside a central server by performing data storage, manipulation, and processing on the Internet of Things (IoT) node. Also, Artificial Intelligence (AI) and Machine Learning applications have become a rudimentary procedure in virtually every industrial or preliminary system. Consequently, the Raspberry Pi is adopted, which is a low-cost computing platform that is profitably applied in the field of IoT. As for the software part, among the plethora of Machine Learning (ML) paradigms reported in the literature, we identified Rulex, as a good ML platform, suitable to be implemented on the Raspberry Pi. In this paper, we present the porting of the Rulex ML platform on the board to perform ML forecasts in an IoT setup. Specifically, we explain the porting Rulex\u2019s libraries on Windows 32 Bits, Ubuntu 64 Bits, and Raspbian 32 Bits. Therefore, with the aim of carrying out an in-depth verification of the application possibilities, we propose to perform forecasts on five unrelated datasets from five different applications, having varying sizes in terms of the number of records, skewness, and dimensionality. These include a small Urban Classification dataset, three larger datasets concerning Human Activity detection, a Biomedical dataset related to mental state, and a Vehicle Activity Recognition dataset. The overall accuracies for the forecasts performed are: 84.13%, 99.29% (for SVM), 95.47% (for SVM), and 95.27% (For KNN) respectively. Finally, an image-based gender classification dataset is employed to perform image classification on the Edge. Moreover, a novel image pre-processing Algorithm was developed that converts images into Time-series by relying on statistical contour-based detection techniques. Even though the dataset contains inconsistent and random images, in terms of subjects and settings, Rulex achieves an overall accuracy of 96.47% while competing with the literature which is dominated by forward-facing and mugshot images. Additionally, power consumption for the Raspberry Pi in a Client\/Server setup was compared with an HP laptop, where the board takes more time, but consumes less energy for the same ML task.<\/jats:p>","DOI":"10.3390\/s21196526","type":"journal-article","created":{"date-parts":[[2021,10,8]],"date-time":"2021-10-08T21:26:20Z","timestamp":1633728380000},"page":"6526","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":6,"title":["Porting Rulex Software to the Raspberry Pi for Machine Learning Applications on the Edge"],"prefix":"10.3390","volume":"21","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-3283-0204","authenticated-orcid":false,"given":"Ali Walid","family":"Daher","sequence":"first","affiliation":[{"name":"COSMIC Lab, Department of Electrical, Electronic and Telecommunications Engineering and Naval Architecture (DITEN), University of Genoa, 16145 Genoa, Italy"},{"name":"MECRL Laboratory, Ph.D. School for Sciences and Technology, Lebanese University, Beirut 6573\/14, Lebanon"},{"name":"Consiglio Nazionale delle Ricerche, Institute of Electronics Computer and Telecommunication Engineering (IEIIT), 16149 Genoa, Italy"},{"name":"Rulex Innovation Labs, Rulex Inc., 16122 Genoa, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-6326-3161","authenticated-orcid":false,"given":"Ali","family":"Rizik","sequence":"additional","affiliation":[{"name":"COSMIC Lab, Department of Electrical, Electronic and Telecommunications Engineering and Naval Architecture (DITEN), University of Genoa, 16145 Genoa, Italy"},{"name":"MECRL Laboratory, Ph.D. School for Sciences and Technology, Lebanese University, Beirut 6573\/14, Lebanon"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9999-2331","authenticated-orcid":false,"given":"Marco","family":"Muselli","sequence":"additional","affiliation":[{"name":"Consiglio Nazionale delle Ricerche, Institute of Electronics Computer and Telecommunication Engineering (IEIIT), 16149 Genoa, Italy"},{"name":"Rulex Innovation Labs, Rulex Inc., 16122 Genoa, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-8008-267X","authenticated-orcid":false,"given":"Hussein","family":"Chible","sequence":"additional","affiliation":[{"name":"MECRL Laboratory, Ph.D. School for Sciences and Technology, Lebanese University, Beirut 6573\/14, Lebanon"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2145-1869","authenticated-orcid":false,"given":"Daniele D.","family":"Caviglia","sequence":"additional","affiliation":[{"name":"COSMIC Lab, Department of Electrical, Electronic and Telecommunications Engineering and Naval Architecture (DITEN), University of Genoa, 16145 Genoa, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2021,9,29]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"1275","DOI":"10.1109\/JIOT.2018.2805263","article-title":"Edge Computing for the Internet of Things: A Case Study","volume":"5","author":"Premsankar","year":"2018","journal-title":"IEEE Internet Things J."},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"6900","DOI":"10.1109\/ACCESS.2017.2778504","article-title":"A Survey on the Edge Computing for the Internet of Things","volume":"6","author":"Yu","year":"2017","journal-title":"IEEE Access"},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Daher, A.W., Rizik, A., Muselli, M., Chible, H., and Caviglia, D.D. (2021). Porting Rulex Machine Learning Software to the Raspberry Pi as an Edge Computing Device. Applications in Electronics Pervading Industry, Environment and Society, Springer.","DOI":"10.1007\/978-3-030-66729-0_33"},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Vujovic, V., and Maksimovic, M. (2014, January 26\u201330). Raspberry Pi as a Wireless Sensor node: Performances and constraints. Proceedings of the 2014 37th International Convention on Information and Communication Technology, Electronics and Microelectronics (MIPRO), Opatija, Croatia.","DOI":"10.1109\/MIPRO.2014.6859717"},{"key":"ref_5","unstructured":"Maksimovic, M., Vujovic, V., Davidovi\u0107, N., Milosevic, V., and Perisic, B. (2014, January 2\u20135). Raspberry Pi as Internet of Things hardware: Performances and Constraints. Proceedings of the IcETRAN, Vrnjacka Banja, Serbia."},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"56","DOI":"10.14806\/ej.18.B.549","article-title":"Extracting knowledge from biomedical data through Logic Learning Machines and Rulex","volume":"18","author":"Muselli","year":"2012","journal-title":"EMBnet J."},{"key":"ref_7","unstructured":"Rulex AI. (2021, September 16). Rulex, the Platform for Data-Driven Decisions. Available online: https:\/\/www.rulex.ai\/."},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Hajdarevic, K., Konjicija, S., and Subasi, A. (2014, January 25\u201327). A low energy APRS-IS client-server infrastructure implementation using Raspberry Pi. Proceedings of the 2014 22nd Telecommunications Forum Telfor (TELFOR), Belgrade, Serbia.","DOI":"10.1109\/TELFOR.2014.7034409"},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"54","DOI":"10.1177\/1460458216655188","article-title":"Logic Learning Machine and standard supervised methods for Hodgkin\u2019s lymphoma prognosis using gene expression data and clinical variables","volume":"24","author":"Parodi","year":"2016","journal-title":"Health Inform. J."},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Muselli, M. (2006). Switching Neural Networks: A New Connectionist Model for Classification. Neural Nets, Springer.","DOI":"10.1007\/11731177_4"},{"key":"ref_11","unstructured":"Muselli, M., and Quarati, A. (September, January 29). Reconstructing positive Boolean functions with shadow clustering. Proceedings of the 2005 European Conference on Circuit Theory and Design, Cork, Ireland."},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"37","DOI":"10.1109\/TKDE.2009.206","article-title":"Coupling Logical Analysis of Data and Shadow Clustering for Partially Defined Positive Boolean Function Reconstruction","volume":"23","author":"Muselli","year":"2009","journal-title":"IEEE Trans. Knowl. Data Eng."},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Al-Khafajiy, M., Webster, L., Baker, T., and Waraich, A. (2018, January 26\u201327). Towards fog driven IoT healthcare: Challenges and framework of fog computing in healthcare. Proceedings of the ICFNDS\u201918: International Conference on Future Networks and Distributed Systems, Amman, Jordan.","DOI":"10.1145\/3231053.3231062"},{"key":"ref_14","doi-asserted-by":"crossref","unstructured":"Cecilia, J., Cano, J.-C., Morales-Garc\u00eda, J., Llanes, A., and Imbern\u00f3n, B. (2020). Evaluation of Clustering Algorithms on GPU-Based Edge Computing Platforms. Sensors, 20.","DOI":"10.3390\/s20216335"},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Lapegna, M., Balzano, W., Meyer, N., and Romano, D. (2021). Clustering Algorithms on Low-Power and High-Performance Devices for Edge Computing Environments. Sensors, 21.","DOI":"10.3390\/s21165395"},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Novac, P.-E., Hacene, G.B., Pegatoquet, A., Miramond, B., and Gripon, V. (2021). Quantization and Deployment of Deep Neural Networks on Microcontrollers. Sensors, 21.","DOI":"10.3390\/s21092984"},{"key":"ref_17","unstructured":"(2021, September 09). Classification of Indoor Environments for IoT Applications: A Machine Learning Approach. Available online: https:\/\/ieeexplore.ieee.org\/abstract\/document\/8458184."},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Kanawaday, A., and Sane, A. (2017, January 24\u201336). Machine learning for predictive maintenance of industrial machines using IoT sensor data. Proceedings of the 2017 8th IEEE International Conference on Software Engineering and Service Science (ICSESS), Beijing, China.","DOI":"10.1109\/ICSESS.2017.8342870"},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"Canedo, J., and Skjellum, A. (2016, January 12\u201314). Using machine learning to secure IoT systems. Proceedings of the 2016 14th Annual Conference on Privacy, Security and Trust (PST), Auckland, New Zealand.","DOI":"10.1109\/PST.2016.7906930"},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Hodo, E., Bellekens, X., Hamilton, A., Dubouilh, P.-L., Iorkyase, E., Tachtatzis, C., and Atkinson, R. (2016, January 11\u201313). Threat analysis of IoT networks using artificial neural network intrusion detection system. Proceedings of the 2016 International Symposium on Networks, Computers and Communications (ISNCC), Yasmine Hammamet, Tunisia.","DOI":"10.1109\/ISNCC.2016.7746067"},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"052021","DOI":"10.1088\/1742-6596\/396\/5\/052021","article-title":"A CMake-based build and configuration framework","volume":"396","author":"Clemencic","year":"2012","journal-title":"J. Phys. Conf. Ser."},{"key":"ref_22","unstructured":"Fober, D., Orlarey, Y., and Letz, S. (2021, September 16). Building Faust with CMake. Available online: https:\/\/hal.archives-ouvertes.fr\/hal-02158978."},{"key":"ref_23","unstructured":"Linux Journal (2021, May 11). Eleven SSH Tricks. Available online: https:\/\/dl.acm.org\/doi\/abs\/10.5555\/860397.860402."},{"key":"ref_24","doi-asserted-by":"crossref","unstructured":"Bellavista, P., and Zanni, A. (2017, January 5\u20137). Feasibility of Fog Computing Deployment based on Docker Containerization over RaspberryPi. Proceedings of the 18th International Conference on Distributed Computing and Networking, Hyderabad, India.","DOI":"10.1145\/3007748.3007777"},{"key":"ref_25","unstructured":"Infineon Technologies (2021, May 11). BGT24MTR11. Available online: https:\/\/www.infineon.com\/cms\/en\/product\/sensor\/radar-sensors\/radar-sensors-for-iot\/24ghz-radar\/bgt24mtr11\/."},{"key":"ref_26","unstructured":"Infineon Technologies (2021, May 11). DEMO DISTANCE2GO. Available online: https:\/\/www.infineon.com\/cms\/en\/product\/evaluation-boards\/demo-distance2go\/."},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Daher, A.W., Rizik, A., Randazzo, A., Tavanti, E., Chible, H., Muselli, M., and Caviglia, D.D. (2020). Pedestrian and Multi-Class Vehicle Classification in Radar Systems Using Rulex Software on the Raspberry Pi. Appl. Sci., 10.","DOI":"10.3390\/app10249113"},{"key":"ref_28","doi-asserted-by":"crossref","unstructured":"Rizik, A., Randazzo, A., Vio, R., Delucchi, A., Chible, H., and Caviglia, D.D. (2019, January 27\u201339). Feature Extraction for Human-Vehicle Classification in FMCW Radar. Proceedings of the 2019 26th IEEE International Conference on Electronics, Circuits and Systems (ICECS), Genova, Italy.","DOI":"10.1109\/ICECS46596.2019.8965072"},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"20447","DOI":"10.1109\/JSEN.2021.3095674","article-title":"Cost-Efficient FMCW Radar for Multi-Target Classification in Security Gate Monitoring","volume":"21","author":"Rizik","year":"2021","journal-title":"IEEE Sens. J."},{"key":"ref_30","unstructured":"Anguita, D., Ghio, A., Oneto, L., Parra, X., and Reyes-Ortiz, J.L. (2013, January 24\u201336). Public Domain Dataset for Human Activity Recognition Using Smartphones. Proceedings of the 21st European Symposium on Artificial Neural Networks, Computational Intelligence and Machine Learning, Bruges, Belgium."},{"key":"ref_31","doi-asserted-by":"crossref","unstructured":"Bird, J.J., Manso, L.J., Ribeiro, E.P., Ekart, A., and Faria, D.R. (2018, January 25\u201327). A Study on Mental State Classification using EEG-based Brain-Machine Interface. Proceedings of the 2018 International Conference on Intelligent Systems (IS), Funchal, Portugal.","DOI":"10.1109\/IS.2018.8710576"},{"key":"ref_32","unstructured":"Axelsson, H., and Wass, D. (2021, May 14). Machine Learning for Activity Recognition of Dumpers 2019. Available online: http:\/\/urn.kb.se\/resolve?urn=urn:nbn:se:kth:diva-260256."},{"key":"ref_33","doi-asserted-by":"crossref","unstructured":"Karimi, F., Wagner, C., Lemmerich, F., Jadidi, M., and Strohmaier, M. (2016, January 11\u201315). Inferring Gender from Names on the Web: A Comparative Evaluation of Gender Detection Methods. Proceedings of the 25th International Conference Companion on World Wide Web, Republic and Canton of Geneva, CHE, Montr\u00e9al, QC, Canada.","DOI":"10.1145\/2872518.2889385"},{"key":"ref_34","unstructured":"Yang, Z., Li, M., and Ai, H. (2006, January 20\u201324). An Experimental Study on Automatic Face Gender Classification. Proceedings of the 18th International Conference on Pattern Recognition (ICPR\u201906), Hong Kong, China."},{"key":"ref_35","unstructured":"Moghaddam, B., and Yang, M.-H. (2002, January 26\u201330). Gender classification with support vector machines. Proceedings of the Fourth IEEE International Conference on Automatic Face and Gesture Recognition (Cat. No. PR00580), Grenoble, France."},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"2170","DOI":"10.1109\/TIFS.2014.2359646","article-title":"Age and Gender Estimation of Unfiltered Faces","volume":"9","author":"Eidinger","year":"2014","journal-title":"IEEE Trans. Inf. Forensics Secur."},{"key":"ref_37","unstructured":"(2021, July 24). Converting Images into Time Series for Data Mining. Available online: https:\/\/izbicki.me\/blog\/converting-images-into-time-series-for-data-mining."},{"key":"ref_38","first-page":"154","article-title":"A Novel Approach for Color Image Edge Detection Using Multidirectional Sobel Filter on HSV Color Space","volume":"5","author":"Bora","year":"2017","journal-title":"Int. J. Comput. Sci. Eng."},{"key":"ref_39","doi-asserted-by":"crossref","unstructured":"Levi, G., and Hassner, T. (2021, July 22). Age and Gender Classification Using Convolutional Neural Networks. Available online: https:\/\/www.cv-foundation.org\/openaccess\/content_cvpr_workshops_2015\/W08\/html\/Levi_Age_and_Gender_2015_CVPR_paper.html.","DOI":"10.1109\/CVPRW.2015.7301352"},{"key":"ref_40","doi-asserted-by":"crossref","unstructured":"Albawi, S., Mohammed, T.A., and Al-Zawi, S. (2017, January 21\u201323). Understanding of a convolutional neural network. Proceedings of the 2017 International Conference on Engineering and Technology (ICET), Antalya, Turkey.","DOI":"10.1109\/ICEngTechnol.2017.8308186"},{"key":"ref_41","unstructured":"(2021, August 01). Male and Female Faces Dataset. Available online: https:\/\/kaggle.com\/ashwingupta3012\/male-and-female-faces-dataset."}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/21\/19\/6526\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,11]],"date-time":"2025-10-11T07:07:36Z","timestamp":1760166456000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/21\/19\/6526"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,9,29]]},"references-count":41,"journal-issue":{"issue":"19","published-online":{"date-parts":[[2021,10]]}},"alternative-id":["s21196526"],"URL":"https:\/\/doi.org\/10.3390\/s21196526","relation":{},"ISSN":["1424-8220"],"issn-type":[{"type":"electronic","value":"1424-8220"}],"subject":[],"published":{"date-parts":[[2021,9,29]]}}}